diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-05 14:30:50 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-06 15:31:47 -0500 |
commit | 649e8ef60fac0a2f6960cdb090d73e78717ac065 (patch) | |
tree | 011b0ccd37851a13add701d87cfb74074e8df1b0 /arch/x86/include/asm/pgtable_32.h | |
parent | 9f38d7e85e914f10a875f65d283432d55a12fc27 (diff) |
x86: unify pmd_present
Impact: cleanup
Unify and demacro pmd_present.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable_32.h')
-rw-r--r-- | arch/x86/include/asm/pgtable_32.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/include/asm/pgtable_32.h b/arch/x86/include/asm/pgtable_32.h index 188073713fed..f35160730b65 100644 --- a/arch/x86/include/asm/pgtable_32.h +++ b/arch/x86/include/asm/pgtable_32.h | |||
@@ -87,7 +87,6 @@ extern unsigned long pg0[]; | |||
87 | 87 | ||
88 | /* To avoid harmful races, pmd_none(x) should check only the lower when PAE */ | 88 | /* To avoid harmful races, pmd_none(x) should check only the lower when PAE */ |
89 | #define pmd_none(x) (!(unsigned long)pmd_val((x))) | 89 | #define pmd_none(x) (!(unsigned long)pmd_val((x))) |
90 | #define pmd_present(x) (pmd_val((x)) & _PAGE_PRESENT) | ||
91 | #define pmd_bad(x) ((pmd_val(x) & (PTE_FLAGS_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) | 90 | #define pmd_bad(x) ((pmd_val(x) & (PTE_FLAGS_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) |
92 | 91 | ||
93 | #define pages_to_mb(x) ((x) >> (20-PAGE_SHIFT)) | 92 | #define pages_to_mb(x) ((x) >> (20-PAGE_SHIFT)) |