From 9067cfc231b0aeb84dd872bf94e7dba3d485e9a4 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 12 Sep 2005 12:29:40 +0000 Subject: [PATCH] Xen_version hypercalls takes two args, not one. Signed-off-by: Ian Pratt Signed-off-by: Keir Fraser --- include/hypervisor.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/hypervisor.h b/include/hypervisor.h index ed3cab6..ee96d30 100644 --- a/include/hypervisor.h +++ b/include/hypervisor.h @@ -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; -- 2.39.5