aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2010-10-21 10:18:38 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-10-23 14:47:01 +0000
commite311248b6442827820bfc7340ea1401caee3a0f1 (patch)
tree5aa40111ea80a889a598fb0f7bfcb558de2ccdfc /tests
parentf34f1fed71a6b63a243962b473a3b69358a07fa0 (diff)
downloadqemu-e311248b6442827820bfc7340ea1401caee3a0f1.zip
qemu-e311248b6442827820bfc7340ea1401caee3a0f1.tar.gz
qemu-e311248b6442827820bfc7340ea1401caee3a0f1.tar.bz2
make runcom compile on recent distributions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/runcom.c11
1 files changed, 4 insertions, 7 deletions
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