From 83fcb515481f72b9bc74c22490fe5a4f4de20dd6 Mon Sep 17 00:00:00 2001 From: bellard Date: Wed, 14 Jun 2006 13:37:16 +0000 Subject: use glibc syscall (David Woodhouse) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1966 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-i386/helper2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'target-i386') 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 #include -_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 -- cgit v1.2.1