diff options
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/page.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/xen/page.h b/include/xen/page.h index c0c8fcb2789..031ef22a971 100644 --- a/include/xen/page.h +++ b/include/xen/page.h | |||
@@ -156,16 +156,16 @@ static inline pte_t mfn_pte(unsigned long page_nr, pgprot_t pgprot) | |||
156 | 156 | ||
157 | static inline unsigned long long pte_val_ma(pte_t x) | 157 | static inline unsigned long long pte_val_ma(pte_t x) |
158 | { | 158 | { |
159 | return ((unsigned long long)x.pte_high << 32) | x.pte_low; | 159 | return x.pte; |
160 | } | 160 | } |
161 | #define pmd_val_ma(v) ((v).pmd) | 161 | #define pmd_val_ma(v) ((v).pmd) |
162 | #define pud_val_ma(v) ((v).pgd.pgd) | 162 | #define pud_val_ma(v) ((v).pgd.pgd) |
163 | #define __pte_ma(x) ((pte_t) { .pte_low = (x), .pte_high = (x)>>32 } ) | 163 | #define __pte_ma(x) ((pte_t) { .pte = (x) }) |
164 | #define __pmd_ma(x) ((pmd_t) { (x) } ) | 164 | #define __pmd_ma(x) ((pmd_t) { (x) } ) |
165 | #else /* !X86_PAE */ | 165 | #else /* !X86_PAE */ |
166 | #define pte_mfn(_pte) ((_pte).pte_low >> PAGE_SHIFT) | 166 | #define pte_mfn(_pte) ((_pte).pte_low >> PAGE_SHIFT) |
167 | #define mfn_pte(pfn, prot) __pte_ma(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) | 167 | #define mfn_pte(pfn, prot) __pte_ma(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) |
168 | #define pte_val_ma(x) ((x).pte_low) | 168 | #define pte_val_ma(x) ((x).pte) |
169 | #define pmd_val_ma(v) ((v).pud.pgd.pgd) | 169 | #define pmd_val_ma(v) ((v).pud.pgd.pgd) |
170 | #define __pte_ma(x) ((pte_t) { (x) } ) | 170 | #define __pte_ma(x) ((pte_t) { (x) } ) |
171 | #endif /* CONFIG_X86_PAE */ | 171 | #endif /* CONFIG_X86_PAE */ |