[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix x86_64 build.



# HG changeset patch
# User smh22@xxxxxxxxxxxxxxxxxxxx
# Node ID 5d95ab80f290d2f6a7d322d6cd1992c28fbfd776
# Parent  b9181b1c576fb39bb4d3b088ac3378d77163b4cc
Fix x86_64 build. 

Signed-off-by: Steven Hand <steven@xxxxxxxxxxxxx>

diff -r b9181b1c576f -r 5d95ab80f290 xen/arch/x86/x86_64/mm.c
--- a/xen/arch/x86/x86_64/mm.c  Sat Nov 26 01:21:55 2005
+++ b/xen/arch/x86/x86_64/mm.c  Sat Nov 26 09:24:08 2005
@@ -190,7 +190,8 @@
         if ( copy_from_user(&xmml, arg, sizeof(xmml)) )
             return -EFAULT;
 
-        for ( v = RDWR_MPT_VIRT_START; v != RDWR_MPT_VIRT_END; v += 1 << 21 )
+        for ( i = 0, v = RDWR_MPT_VIRT_START; v != RDWR_MPT_VIRT_END; 
+              i++, v += 1 << 21 )
         {
             l3e = l4e_to_l3e(idle_pg_table[l4_table_offset(v)])[
                 l3_table_offset(v)];
@@ -204,7 +205,6 @@
                 break;
             if ( put_user(mfn, &xmml.extent_start[i]) )
                 return -EFAULT;
-            i++;
         }
 
         if ( put_user(i, &((struct xen_machphys_mfn_list *)arg)->nr_extents) )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.