diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-01-30 07:33:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:14 -0500 |
commit | 2f98b2faac1b5fec327edbde945cdf7f7a53f351 (patch) | |
tree | 6c202d31e27a553e40ab410509aa8f40bdca01fc /include/asm-x86/page.h | |
parent | 118c890961a2ca456947d72ebe0ce43de07907f0 (diff) |
add native_pud_val and _pmd_val for 2 and 3
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.h')
-rw-r--r-- | include/asm-x86/page.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h index a6495eb5c605..eba88d940092 100644 --- a/include/asm-x86/page.h +++ b/include/asm-x86/page.h | |||
@@ -91,6 +91,11 @@ static inline pudval_t native_pud_val(pud_t pud) | |||
91 | } | 91 | } |
92 | #else /* PAGETABLE_LEVELS == 3 */ | 92 | #else /* PAGETABLE_LEVELS == 3 */ |
93 | #include <asm-generic/pgtable-nopud.h> | 93 | #include <asm-generic/pgtable-nopud.h> |
94 | |||
95 | static inline pudval_t native_pud_val(pud_t pud) | ||
96 | { | ||
97 | return native_pgd_val(pud.pgd); | ||
98 | } | ||
94 | #endif /* PAGETABLE_LEVELS == 4 */ | 99 | #endif /* PAGETABLE_LEVELS == 4 */ |
95 | 100 | ||
96 | typedef struct { pmdval_t pmd; } pmd_t; | 101 | typedef struct { pmdval_t pmd; } pmd_t; |
@@ -106,6 +111,11 @@ static inline pmdval_t native_pmd_val(pmd_t pmd) | |||
106 | } | 111 | } |
107 | #else /* PAGETABLE_LEVELS == 2 */ | 112 | #else /* PAGETABLE_LEVELS == 2 */ |
108 | #include <asm-generic/pgtable-nopmd.h> | 113 | #include <asm-generic/pgtable-nopmd.h> |
114 | |||
115 | static inline pmdval_t native_pmd_val(pmd_t pmd) | ||
116 | { | ||
117 | return native_pgd_val(pmd.pud.pgd); | ||
118 | } | ||
109 | #endif /* PAGETABLE_LEVELS >= 3 */ | 119 | #endif /* PAGETABLE_LEVELS >= 3 */ |
110 | 120 | ||
111 | static inline pte_t native_make_pte(pteval_t val) | 121 | static inline pte_t native_make_pte(pteval_t val) |