diff options
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 76696e98f5b3..178205305ac0 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef _ASM_X86_PGTABLE_H | 1 | #ifndef _ASM_X86_PGTABLE_H |
2 | #define _ASM_X86_PGTABLE_H | 2 | #define _ASM_X86_PGTABLE_H |
3 | 3 | ||
4 | #include <asm/page.h> | ||
5 | |||
4 | #define FIRST_USER_ADDRESS 0 | 6 | #define FIRST_USER_ADDRESS 0 |
5 | 7 | ||
6 | #define _PAGE_BIT_PRESENT 0 /* is present */ | 8 | #define _PAGE_BIT_PRESENT 0 /* is present */ |
@@ -528,6 +530,13 @@ static inline unsigned long pages_to_mb(unsigned long npg) | |||
528 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 530 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
529 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 531 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
530 | 532 | ||
533 | #if PAGETABLE_LEVELS == 2 | ||
534 | static inline int pud_large(pud_t pud) | ||
535 | { | ||
536 | return 0; | ||
537 | } | ||
538 | #endif | ||
539 | |||
531 | #if PAGETABLE_LEVELS > 2 | 540 | #if PAGETABLE_LEVELS > 2 |
532 | static inline int pud_none(pud_t pud) | 541 | static inline int pud_none(pud_t pud) |
533 | { | 542 | { |