]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/xen/mmu.c
xen: fix truncation of machine address
[linux-2.6-omap-h63xx.git] / arch / x86 / xen / mmu.c
index 2579e70cdd088f565b4c666edf673e3b073eadf1..05d7392a7a4c59000b5a4c6c10d1c32724f8603d 100644 (file)
@@ -186,7 +186,7 @@ xmaddr_t arbitrary_virt_to_machine(unsigned long address)
 
        BUG_ON(pte == NULL);
 
-       return XMADDR((pte_mfn(*pte) << PAGE_SHIFT) + offset);
+       return XMADDR(((phys_addr_t)pte_mfn(*pte) << PAGE_SHIFT) + offset);
 }
 
 void make_lowmem_page_readonly(void *vaddr)