x86: unify pte_present

Impact: cleanup

Unify and demacro pte_present.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
This commit is contained in:
Jeremy Fitzhardinge
2009-02-05 11:30:45 -08:00
parent 8de01da35e
commit 7c683851d9
3 changed files with 5 additions and 4 deletions

View File

@@ -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