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 e929d43753c5..17fcc17d6b4f 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h | |||
@@ -440,6 +440,11 @@ static inline int pte_same(pte_t a, pte_t b) | |||
440 | return a.pte == b.pte; | 440 | return a.pte == b.pte; |
441 | } | 441 | } |
442 | 442 | ||
443 | static inline int pte_present(pte_t a) | ||
444 | { | ||
445 | return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE); | ||
446 | } | ||
447 | |||
443 | #endif /* __ASSEMBLY__ */ | 448 | #endif /* __ASSEMBLY__ */ |
444 | 449 | ||
445 | #ifdef CONFIG_X86_32 | 450 | #ifdef CONFIG_X86_32 |