Skip to content

Commit

Permalink
make runcom compile on recent distributions
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
  • Loading branch information
bonzini authored and blueswirl committed Oct 23, 2010
1 parent f34f1fe commit e311248
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/runcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e311248

Please sign in to comment.