From: Paolo Bonzini Date: Thu, 21 Oct 2010 08:18:38 +0000 (+0200) Subject: make runcom compile on recent distributions X-Git-Tag: v0.14.0-rc0~526 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e311248b6442827820bfc7340ea1401caee3a0f1;p=qemu.git make runcom compile on recent distributions Signed-off-by: Paolo Bonzini Signed-off-by: Blue Swirl --- diff --git a/tests/runcom.c b/tests/runcom.c index 638056663..d60342bfc 100644 --- a/tests/runcom.c +++ b/tests/runcom.c @@ -13,15 +13,12 @@ #include #include -//#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