qemu/target-i386 helper2.c
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Fabrice Bellard <bellard> 06/06/14 13:37:16
Modified files:
target-i386 : helper2.c
Log message:
use glibc syscall (David Woodhouse)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/target-i386/helper2.c?cvsroot=qemu&r1=1.41&r2=1.42
Patches:
Index: helper2.c
===================================================================
RCS file: /sources/qemu/qemu/target-i386/helper2.c,v retrieving revision 1.41
retrieving revision 1.42
helper2.c +4 -1
@@ -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