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

[Xen-changelog] [xen-unstable] stubdom: fix munmap's update_va_mapping flag passing, thus fixing



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1219925342 -3600
# Node ID b674d71595497d85a19508664f8d4b442481b0ab
# Parent  98b89c2b1cde11f06a2f2c8d7efa13613e578ef5
stubdom: fix munmap's update_va_mapping flag passing, thus fixing
INVLPG passing

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
 extras/mini-os/lib/sys.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff -r 98b89c2b1cde -r b674d7159549 extras/mini-os/lib/sys.c
--- a/extras/mini-os/lib/sys.c  Thu Aug 28 11:38:57 2008 +0100
+++ b/extras/mini-os/lib/sys.c  Thu Aug 28 13:09:02 2008 +0100
@@ -1221,11 +1221,14 @@ int munmap(void *start, size_t length)
             int ret;
 
             for (i = 0; i < n; i++) {
+                int arg = 0;
                 call[i].op = __HYPERVISOR_update_va_mapping;
-                call[i].args[0] = (unsigned long) &data[i];
-                call[i].args[1] = 0;
-                call[i].args[2] = 0;
-                call[i].args[3] = UVMF_INVLPG;
+                call[i].args[arg++] = (unsigned long) &data[i];
+                call[i].args[arg++] = 0;
+#ifdef __i386__
+                call[i].args[arg++] = 0;
+#endif
+                call[i].args[arg++] = UVMF_INVLPG;
             }
 
             ret = HYPERVISOR_multicall(call, n);

_______________________________________________
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®.