summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/page_types.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2009-02-09 00:09:52 -0800
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-02-11 14:54:10 -0800
commite2f5bda94152fa567f6b48126741014123f982b8 (patch)
treef3920a55b3d060bfa51497d0c0d1f71825ddfb53 /arch/x86/include/asm/page_types.h
parente42778de31d78ae262a3b901264eabefb9c3b51b (diff)
x86: define pud_flags and pud_large properly to allow non-PAE builds
Diffstat (limited to 'arch/x86/include/asm/page_types.h')
-rw-r--r--arch/x86/include/asm/page_types.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/include/asm/page_types.h b/arch/x86/include/asm/page_types.h
index c41e3e8f2271..0733853e7c87 100644
--- a/arch/x86/include/asm/page_types.h
+++ b/arch/x86/include/asm/page_types.h
@@ -90,11 +90,6 @@ static inline pudval_t native_pud_val(pud_t pud)
#if PAGETABLE_LEVELS > 2
typedef struct { pmdval_t pmd; } pmd_t;
-static inline pudval_t pud_flags(pud_t pud)
-{
- return native_pud_val(pud) & PTE_FLAGS_MASK;
-}
-
static inline pmd_t native_make_pmd(pmdval_t val)
{
return (pmd_t) { val };
@@ -113,6 +108,11 @@ static inline pmdval_t native_pmd_val(pmd_t pmd)
}
#endif
+static inline pudval_t pud_flags(pud_t pud)
+{
+ return native_pud_val(pud) & PTE_FLAGS_MASK;
+}
+
static inline pmdval_t pmd_flags(pmd_t pmd)
{
return native_pmd_val(pmd) & PTE_FLAGS_MASK;