aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/mmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index f6b8225c2a0b..42b3b9ed641d 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -366,7 +366,7 @@ static pteval_t pte_mfn_to_pfn(pteval_t val)
366 if (val & _PAGE_PRESENT) { 366 if (val & _PAGE_PRESENT) {
367 unsigned long mfn = (val & PTE_MASK) >> PAGE_SHIFT; 367 unsigned long mfn = (val & PTE_MASK) >> PAGE_SHIFT;
368 pteval_t flags = val & ~PTE_MASK; 368 pteval_t flags = val & ~PTE_MASK;
369 val = (mfn_to_pfn(mfn) << PAGE_SHIFT) | flags; 369 val = ((pteval_t)mfn_to_pfn(mfn) << PAGE_SHIFT) | flags;
370 } 370 }
371 371
372 return val; 372 return val;
@@ -377,7 +377,7 @@ static pteval_t pte_pfn_to_mfn(pteval_t val)
377 if (val & _PAGE_PRESENT) { 377 if (val & _PAGE_PRESENT) {
378 unsigned long pfn = (val & PTE_MASK) >> PAGE_SHIFT; 378 unsigned long pfn = (val & PTE_MASK) >> PAGE_SHIFT;
379 pteval_t flags = val & ~PTE_MASK; 379 pteval_t flags = val & ~PTE_MASK;
380 val = (pfn_to_mfn(pfn) << PAGE_SHIFT) | flags; 380 val = ((pteval_t)pfn_to_mfn(pfn) << PAGE_SHIFT) | flags;
381 } 381 }
382 382
383 return val; 383 return val;