diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-06-14 13:37:16 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-06-14 13:37:16 +0000 |
commit | 83fcb515481f72b9bc74c22490fe5a4f4de20dd6 (patch) | |
tree | a81543319e31ea961ea448f4edd8cf675de37d6e /target-i386 | |
parent | 5b9053a5ea29f51a6058a5ce76daee6f80efb0b2 (diff) |
use glibc syscall (David Woodhouse)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1966 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/helper2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target-i386/helper2.c b/target-i386/helper2.c index 9d5d9b564e..ac7d0568b2 100644 --- a/target-i386/helper2.c +++ b/target-i386/helper2.c @@ -35,7 +35,10 @@ #include <linux/unistd.h> #include <linux/version.h> -_syscall3(int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount) +int modify_ldt(int func, void *ptr, unsigned long bytecount) +{ + return syscall(__NR_modify_ldt, func, ptr, bytecount); +} #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 66) #define modify_ldt_ldt_s user_desc |