diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-09 09:09:52 +0100 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-02-11 23:54:10 +0100 |
commit | e2f5bda94152fa567f6b48126741014123f982b8 (patch) | |
tree | f3920a55b3d060bfa51497d0c0d1f71825ddfb53 /arch/x86/include/asm/pgtable.h | |
parent | x86: move defs around to allow paravirt.h to just include page_types.h (diff) | |
download | linux-e2f5bda94152fa567f6b48126741014123f982b8.tar.xz linux-e2f5bda94152fa567f6b48126741014123f982b8.zip |
x86: define pud_flags and pud_large properly to allow non-PAE builds
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 10404e7bf32d..9f5085097977 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -398,7 +398,7 @@ static inline unsigned long pmd_pfn(pmd_t pmd) static inline int pud_large(pud_t pud) { - return (pud_flags(pud) & (_PAGE_PSE | _PAGE_PRESENT)) == + return (pud_val(pud) & (_PAGE_PSE | _PAGE_PRESENT)) == (_PAGE_PSE | _PAGE_PRESENT); } @@ -406,6 +406,11 @@ static inline int pud_bad(pud_t pud) { return (pud_flags(pud) & ~(_KERNPG_TABLE | _PAGE_USER)) != 0; } +#else +static inline int pud_large(pud_t pud) +{ + return 0; +} #endif /* PAGETABLE_LEVELS > 2 */ #if PAGETABLE_LEVELS > 3 |