diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-01-30 07:32:57 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:57 -0500 |
commit | c8e5393ab38564d2f45b560a2f95bc8f9ff6f823 (patch) | |
tree | 2976d59bb412786712bddec0eedf82e1db58401d /include/asm-x86/page_64.h | |
parent | b7fff536d0ad45c4810f9b99845c707ceadc3afc (diff) |
x86: page.h: make pte_t a union to always include
Make sure pte_t, whatever its definition, has a pte element with type
pteval_t. This allows common code to access it without needing to be
specifically parameterised on what pagetable mode we're compiling for.
For 32-bit, this means that pte_t becomes a union with "pte" and "{
pte_low, pte_high }" (PAE) or just "pte_low" (non-PAE).
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/page_64.h')
-rw-r--r-- | include/asm-x86/page_64.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/asm-x86/page_64.h b/include/asm-x86/page_64.h index ebf977a809a8..c1ac42d8707f 100644 --- a/include/asm-x86/page_64.h +++ b/include/asm-x86/page_64.h | |||
@@ -70,9 +70,6 @@ typedef unsigned long phys_addr_t; | |||
70 | 70 | ||
71 | typedef struct { pteval_t pte; } pte_t; | 71 | typedef struct { pteval_t pte; } pte_t; |
72 | 72 | ||
73 | #define native_pte_val(x) ((x).pte) | ||
74 | #define native_make_pte(x) ((pte_t) { (x) } ) | ||
75 | |||
76 | #define vmemmap ((struct page *)VMEMMAP_START) | 73 | #define vmemmap ((struct page *)VMEMMAP_START) |
77 | 74 | ||
78 | #endif /* !__ASSEMBLY__ */ | 75 | #endif /* !__ASSEMBLY__ */ |