]> Git Repo - qemu.git/commitdiff
make runcom compile on recent distributions
authorPaolo Bonzini <[email protected]>
Thu, 21 Oct 2010 08:18:38 +0000 (10:18 +0200)
committerBlue Swirl <[email protected]>
Sat, 23 Oct 2010 14:47:01 +0000 (14:47 +0000)
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
tests/runcom.c

index 6380566635538137bf9aeaede2cb523af1de8b83..d60342bfc65a9c4f0e18b63286661afa512c9288 100644 (file)
 #include <linux/unistd.h>
 #include <asm/vm86.h>
 
-//#define SIGTEST
+extern int vm86 (unsigned long int subfunction,
+                struct vm86plus_struct *info);
 
-#undef __syscall_return
-#define __syscall_return(type, res) \
-do { \
-       return (type) (res); \
-} while (0)
+#define VIF_MASK                0x00080000
 
-_syscall2(int, vm86, int, func, struct vm86plus_struct *, v86)
+//#define SIGTEST
 
 #define COM_BASE_ADDR    0x10100
 
This page took 0.026524 seconds and 4 git commands to generate.