]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commitdiff
Xen_version hypercalls takes two args, not one.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 12 Sep 2005 12:29:40 +0000 (12:29 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 12 Sep 2005 12:29:40 +0000 (12:29 +0000)
Signed-off-by: Ian Pratt <ian@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
include/hypervisor.h

index ed3cab6fe635b241538e1f5014d3588d4ff57d06..ee96d30bb0594206fc0792db72f2bf7ab3172737 100644 (file)
@@ -414,15 +414,15 @@ HYPERVISOR_event_channel_op(
 
 static inline int
 HYPERVISOR_xen_version(
-    int cmd)
+    int cmd, void *arg)
 {
     int ret;
-    unsigned long ignore;
+    unsigned long ignore, ign2;
 
     __asm__ __volatile__ (
         TRAP_INSTR
-        : "=a" (ret), "=b" (ignore)
-       : "0" (__HYPERVISOR_xen_version), "1" (cmd)
+        : "=a" (ret), "=b" (ignore), "=c" (ign2)
+       : "0" (__HYPERVISOR_xen_version), "1" (cmd), "2" (arg)
        : "memory" );
 
     return ret;