aboutsummaryrefslogtreecommitdiff
path: root/tests/runcom.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-04-11 00:13:04 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-04-11 00:13:04 +0000
commit7fb9a24e3925cecc4b6e4a47a27c2caba077b2f6 (patch)
tree4bab35756ff2be03da555dd9eefa239cd3258e77 /tests/runcom.c
parentafeb6ee3772edd18ad4b2b17abf57578ee91a9a3 (diff)
update
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@92 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tests/runcom.c')
-rw-r--r--tests/runcom.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runcom.c b/tests/runcom.c
index 2d41341c57..4c83de0694 100644
--- a/tests/runcom.c
+++ b/tests/runcom.c
@@ -3,6 +3,7 @@
*/
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <inttypes.h>
#include <unistd.h>
#include <fcntl.h>
@@ -14,6 +15,12 @@
//#define SIGTEST
+#undef __syscall_return
+#define __syscall_return(type, res) \
+do { \
+ return (type) (res); \
+} while (0)
+
_syscall2(int, vm86, int, func, struct vm86plus_struct *, v86)
#define COM_BASE_ADDR 0x10100