diff options
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index ebcb60e6a961..38882f6cc827 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h | |||
@@ -546,6 +546,11 @@ static inline int pud_large(pud_t pud) | |||
546 | return (pud_val(pud) & (_PAGE_PSE | _PAGE_PRESENT)) == | 546 | return (pud_val(pud) & (_PAGE_PSE | _PAGE_PRESENT)) == |
547 | (_PAGE_PSE | _PAGE_PRESENT); | 547 | (_PAGE_PSE | _PAGE_PRESENT); |
548 | } | 548 | } |
549 | |||
550 | static inline int pud_bad(pud_t pud) | ||
551 | { | ||
552 | return (pud_val(pud) & ~(PTE_PFN_MASK | _KERNPG_TABLE | _PAGE_USER)) != 0; | ||
553 | } | ||
549 | #endif /* PAGETABLE_LEVELS > 2 */ | 554 | #endif /* PAGETABLE_LEVELS > 2 */ |
550 | 555 | ||
551 | #if PAGETABLE_LEVELS > 3 | 556 | #if PAGETABLE_LEVELS > 3 |