Patchwork [4/6] make runcom compile on recent distributions

login
register
mail settings
Submitter Paolo Bonzini
Date Oct. 21, 2010, 8:18 a.m.
Message ID <1287649120-30740-5-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/68547/
State New
Headers show

Comments

Paolo Bonzini - Oct. 21, 2010, 8:18 a.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 tests/runcom.c |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

Patch

diff --git a/tests/runcom.c b/tests/runcom.c
index 6380566..d60342b 100644
--- a/tests/runcom.c
+++ b/tests/runcom.c
@@ -13,15 +13,12 @@ 
 #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