diff options
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 4ec24b6d0994..a7dbb05075d2 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h | |||
@@ -504,6 +504,12 @@ static inline struct page *pud_page(pud_t pud) | |||
504 | { | 504 | { |
505 | return pfn_to_page(pud_val(pud) >> PAGE_SHIFT); | 505 | return pfn_to_page(pud_val(pud) >> PAGE_SHIFT); |
506 | } | 506 | } |
507 | |||
508 | /* Find an entry in the second-level page table.. */ | ||
509 | static inline pmd_t *pmd_offset(pud_t *pud, unsigned long address) | ||
510 | { | ||
511 | return (pmd_t *)pud_page_vaddr(*pud) + pmd_index(address); | ||
512 | } | ||
507 | #endif /* PAGETABLE_LEVELS > 2 */ | 513 | #endif /* PAGETABLE_LEVELS > 2 */ |
508 | 514 | ||
509 | #if PAGETABLE_LEVELS > 3 | 515 | #if PAGETABLE_LEVELS > 3 |