diff options
Diffstat (limited to 'include/asm-i386/pgtable.h')
-rw-r--r-- | include/asm-i386/pgtable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-i386/pgtable.h b/include/asm-i386/pgtable.h index 0e3ec809352d..38ec33eb6f12 100644 --- a/include/asm-i386/pgtable.h +++ b/include/asm-i386/pgtable.h | |||
@@ -369,6 +369,11 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) | |||
369 | #define pte_offset_kernel(dir, address) \ | 369 | #define pte_offset_kernel(dir, address) \ |
370 | ((pte_t *) pmd_page_kernel(*(dir)) + pte_index(address)) | 370 | ((pte_t *) pmd_page_kernel(*(dir)) + pte_index(address)) |
371 | 371 | ||
372 | #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT)) | ||
373 | |||
374 | #define pmd_page_kernel(pmd) \ | ||
375 | ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK)) | ||
376 | |||
372 | /* | 377 | /* |
373 | * Helper function that returns the kernel pagetable entry controlling | 378 | * Helper function that returns the kernel pagetable entry controlling |
374 | * the virtual address 'address'. NULL means no pagetable entry present. | 379 | * the virtual address 'address'. NULL means no pagetable entry present. |