diff options
Diffstat (limited to 'kernel/include/xen')
-rw-r--r-- | kernel/include/xen/page.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/include/xen/page.h b/kernel/include/xen/page.h index 96294ac93..9dc46cb8a 100644 --- a/kernel/include/xen/page.h +++ b/kernel/include/xen/page.h @@ -15,9 +15,9 @@ */ #define xen_pfn_to_page(xen_pfn) \ - ((pfn_to_page(((unsigned long)(xen_pfn) << XEN_PAGE_SHIFT) >> PAGE_SHIFT))) + (pfn_to_page((unsigned long)(xen_pfn) >> (PAGE_SHIFT - XEN_PAGE_SHIFT))) #define page_to_xen_pfn(page) \ - (((page_to_pfn(page)) << PAGE_SHIFT) >> XEN_PAGE_SHIFT) + ((page_to_pfn(page)) << (PAGE_SHIFT - XEN_PAGE_SHIFT)) #define XEN_PFN_PER_PAGE (PAGE_SIZE / XEN_PAGE_SIZE) |