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] [xen-unstable] stubdom: fix munmap's update_va_mapping f

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] stubdom: fix munmap's update_va_mapping flag passing, thus fixing
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Aug 2008 08:30:20 -0700
Delivery-date: Fri, 29 Aug 2008 08:30:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] stubdom: fix munmap's update_va_mapping flag passing, thus fixing, Xen patchbot-unstable <=