Skip to contentSkip to conversation

tests/runcom.c: use sys/vm86.h definition of vm86 system call

PATCH New Carlo Marcelo Arenas Belon 1 participant 1 message Nov 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/runcom.c: use sys/vm86.h definition of vm86 system call

The following patch fixes a compilation/type mismatch issue for runcom by removing the _syscall2 macro call (deprecated since kernel 2.6.18) and using the definition from <sys/vm86.h> for the vm86 system call instead.

Carlo
---
Index: tests/runcom.c
===================================================================
RCS file: /sources/qemu/qemu/tests/runcom.c,v
retrieving revision 1.5

runcom.c +1 -2
diff -u -r1.5 runcom.c
@@ -12,6 +12,7 @@
 
 #include <linux/unistd.h>
 #include <asm/vm86.h>
+#include <sys/vm86.h>
 
 //#define SIGTEST
 
@@ -21,8 +22,6 @@
 	return (type) (res); \
 } while (0)
 
-_syscall2(int, vm86, int, func, struct vm86plus_struct *, v86)
-
 #define COM_BASE_ADDR    0x10100
 
 void usage(void)