qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] qemu/target-i386 helper2.c


From: Fabrice Bellard
Subject: [Qemu-devel] qemu/target-i386 helper2.c
Date: Wed, 14 Jun 2006 13:37:16 +0000

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
diff -u -b -r1.41 -r1.42
--- helper2.c   25 Apr 2006 21:27:42 -0000      1.41
+++ helper2.c   14 Jun 2006 13:37:16 -0000      1.42
@@ -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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]