ia64/xen-unstable

changeset 18852:9a6153a89d66

x86: Fix mfn_to_virt() to cast MFN to address size.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Dec 03 11:38:36 2008 +0000 (2008-12-03)
parents 28d485613eb3
children cb526325927c
files xen/include/asm-x86/page.h
line diff
     1.1 --- a/xen/include/asm-x86/page.h	Wed Dec 03 11:21:34 2008 +0000
     1.2 +++ b/xen/include/asm-x86/page.h	Wed Dec 03 11:38:36 2008 +0000
     1.3 @@ -228,7 +228,7 @@ void copy_page_sse2(void *, const void *
     1.4  
     1.5  /* Convert between Xen-heap virtual addresses and machine frame numbers. */
     1.6  #define virt_to_mfn(va)     (virt_to_maddr(va) >> PAGE_SHIFT)
     1.7 -#define mfn_to_virt(mfn)    (maddr_to_virt(mfn << PAGE_SHIFT))
     1.8 +#define mfn_to_virt(mfn)    (maddr_to_virt((paddr_t)(mfn) << PAGE_SHIFT))
     1.9  
    1.10  /* Convert between machine frame numbers and page-info structures. */
    1.11  #define mfn_to_page(mfn)    (frame_table + (mfn))