diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/xen/mmu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index b2e32f9d0071..0ac6c5dc49ba 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c | |||
@@ -244,6 +244,8 @@ pte_t xen_make_pte(unsigned long long pte) | |||
244 | if (pte & 1) | 244 | if (pte & 1) |
245 | pte = phys_to_machine(XPADDR(pte)).maddr; | 245 | pte = phys_to_machine(XPADDR(pte)).maddr; |
246 | 246 | ||
247 | pte &= ~_PAGE_PCD; | ||
248 | |||
247 | return (pte_t){ pte, pte >> 32 }; | 249 | return (pte_t){ pte, pte >> 32 }; |
248 | } | 250 | } |
249 | 251 | ||
@@ -291,6 +293,8 @@ pte_t xen_make_pte(unsigned long pte) | |||
291 | if (pte & _PAGE_PRESENT) | 293 | if (pte & _PAGE_PRESENT) |
292 | pte = phys_to_machine(XPADDR(pte)).maddr; | 294 | pte = phys_to_machine(XPADDR(pte)).maddr; |
293 | 295 | ||
296 | pte &= ~_PAGE_PCD; | ||
297 | |||
294 | return (pte_t){ pte }; | 298 | return (pte_t){ pte }; |
295 | } | 299 | } |
296 | 300 | ||