ia64/xen-unstable

changeset 8071:5d95ab80f290

Fix x86_64 build.

Signed-off-by: Steven Hand <steven@xensource.com>
author smh22@firebug.cl.cam.ac.uk
date Sat Nov 26 10:24:08 2005 +0100 (2005-11-26)
parents b9181b1c576f
children b05e1c4bc31b
files xen/arch/x86/x86_64/mm.c
line diff
     1.1 --- a/xen/arch/x86/x86_64/mm.c	Sat Nov 26 01:21:55 2005 +0000
     1.2 +++ b/xen/arch/x86/x86_64/mm.c	Sat Nov 26 10:24:08 2005 +0100
     1.3 @@ -190,7 +190,8 @@ long arch_memory_op(int op, void *arg)
     1.4          if ( copy_from_user(&xmml, arg, sizeof(xmml)) )
     1.5              return -EFAULT;
     1.6  
     1.7 -        for ( v = RDWR_MPT_VIRT_START; v != RDWR_MPT_VIRT_END; v += 1 << 21 )
     1.8 +        for ( i = 0, v = RDWR_MPT_VIRT_START; v != RDWR_MPT_VIRT_END; 
     1.9 +              i++, v += 1 << 21 )
    1.10          {
    1.11              l3e = l4e_to_l3e(idle_pg_table[l4_table_offset(v)])[
    1.12                  l3_table_offset(v)];
    1.13 @@ -204,7 +205,6 @@ long arch_memory_op(int op, void *arg)
    1.14                  break;
    1.15              if ( put_user(mfn, &xmml.extent_start[i]) )
    1.16                  return -EFAULT;
    1.17 -            i++;
    1.18          }
    1.19  
    1.20          if ( put_user(i, &((struct xen_machphys_mfn_list *)arg)->nr_extents) )