ia64/xen-unstable

changeset 16864:f98a26b5b398

ioemu: fix phys_ram_addr parameter usage

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jan 23 18:03:25 2008 +0000 (2008-01-23)
parents 6496ad18c3e2
children 019f5bd23ea5
files tools/ioemu/target-i386-dm/exec-dm.c
line diff
     1.1 --- a/tools/ioemu/target-i386-dm/exec-dm.c	Wed Jan 23 18:02:48 2008 +0000
     1.2 +++ b/tools/ioemu/target-i386-dm/exec-dm.c	Wed Jan 23 18:03:25 2008 +0000
     1.3 @@ -414,7 +414,7 @@ int iomem_index(target_phys_addr_t addr)
     1.4  #if defined(__i386__) || defined(__x86_64__)
     1.5  #define phys_ram_addr(x) (qemu_map_cache(x))
     1.6  #elif defined(__ia64__)
     1.7 -#define phys_ram_addr(x) ((addr < ram_size) ? (phys_ram_base + (x)) : NULL)
     1.8 +#define phys_ram_addr(x) (((x) < ram_size) ? (phys_ram_base + (x)) : NULL)
     1.9  #endif
    1.10  
    1.11  extern unsigned long *logdirty_bitmap;