x86: unify pmd_present

Impact: cleanup

Unify and demacro pmd_present.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
This commit is contained in:
Jeremy Fitzhardinge
2009-02-05 11:30:50 -08:00
parent 9f38d7e85e
commit 649e8ef60f
3 changed files with 5 additions and 2 deletions

View File

@@ -445,6 +445,11 @@ static inline int pte_present(pte_t a)
return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE);
}
static inline int pmd_present(pmd_t pmd)
{
return pmd_val(pmd) & _PAGE_PRESENT;
}
#if PAGETABLE_LEVELS > 2
static inline int pud_present(pud_t pud)
{