]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-um/pgtable-3level.h
[PATCH] sysctl: s390: move sysctl definitions to sysctl.h
[linux-2.6-omap-h63xx.git] / include / asm-um / pgtable-3level.h
index 786c2572728996879e7795fdf49d09bab7584802..ca0c2a92a112ebcccf8912338c6e7c187408122e 100644 (file)
@@ -74,11 +74,12 @@ extern inline void pud_clear (pud_t *pud)
         set_pud(pud, __pud(0));
 }
 
-#define pud_page(pud) \
+#define pud_page(pud) phys_to_page(pud_val(pud) & PAGE_MASK)
+#define pud_page_vaddr(pud) \
        ((struct page *) __va(pud_val(pud) & PAGE_MASK))
 
 /* Find an entry in the second-level page table.. */
-#define pmd_offset(pud, address) ((pmd_t *) pud_page(*(pud)) + \
+#define pmd_offset(pud, address) ((pmd_t *) pud_page_vaddr(*(pud)) + \
                        pmd_index(address))
 
 static inline unsigned long pte_pfn(pte_t pte)