Displaying 1 result from an estimated 1 matches for "pfp2".
Did you mean:
pap2
2013 Dec 06
0
[Patch v2] xen/tmem: Fix uses of unmatched __map_domain_page()
...uct page_info *pfp)
{
- void *p = __map_domain_page(pfp);
+ const uint8_t *p = __map_domain_page(pfp);
+ uint8_t byte = p[0];
- return (uint8_t)(*(char *)p);
+ unmap_domain_page(p);
+
+ return byte;
}
static inline int tmem_page_cmp(struct page_info *pfp1, struct page_info *pfp2)
{
- const uint64_t *p1 = (uint64_t *)__map_domain_page(pfp1);
- const uint64_t *p2 = (uint64_t *)__map_domain_page(pfp2);
- int i;
-
- // FIXME: code in assembly?
-ASSERT(p1 != NULL);
-ASSERT(p2 != NULL);
- for ( i = PAGE_SIZE/sizeof(uint64_t); i && *p1 == *p2; i--, p1++, p...