WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix x86_64 build., Xen patchbot -unstable <=