diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-05 20:30:45 +0100 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-06 21:28:37 +0100 |
commit | 7c683851d96c8313586c0695b25ca41bde9f0f73 (patch) | |
tree | 3de069c8293238ab5a6e3b2c60068b2ae807bace /arch/x86/include/asm/pgtable.h | |
parent | x86: unify pte_same (diff) | |
download | linux-7c683851d96c8313586c0695b25ca41bde9f0f73.tar.xz linux-7c683851d96c8313586c0695b25ca41bde9f0f73.zip |
x86: unify pte_present
Impact: cleanup
Unify and demacro pte_present.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
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) return a.pte == b.pte; } +static inline int pte_present(pte_t a) +{ + return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE); +} + #endif /* __ASSEMBLY__ */ #ifdef CONFIG_X86_32 |