aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r--arch/x86/include/asm/pgtable.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index c117b28df151..339e49a9bb6c 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -452,6 +452,13 @@ static inline int pud_present(pud_t pud)
452} 452}
453#endif /* PAGETABLE_LEVELS > 2 */ 453#endif /* PAGETABLE_LEVELS > 2 */
454 454
455#if PAGETABLE_LEVELS > 3
456static inline int pgd_present(pgd_t pgd)
457{
458 return pgd_val(pgd) & _PAGE_PRESENT;
459}
460#endif /* PAGETABLE_LEVELS > 3 */
461
455#endif /* __ASSEMBLY__ */ 462#endif /* __ASSEMBLY__ */
456 463
457#ifdef CONFIG_X86_32 464#ifdef CONFIG_X86_32