]> git.saurik.com Git - apple/libc.git/blobdiff - i386/pthreads/pthread_set_self.s
Libc-391.5.21.tar.gz
[apple/libc.git] / i386 / pthreads / pthread_set_self.s
index 3e3b519693a55e656c63aa91e207a336fb5379a5..45ae447ab9ecd1e00600a8e3b1ffce21a2ec7b15 100644 (file)
@@ -21,6 +21,8 @@
  * @APPLE_LICENSE_HEADER_END@
  */
 
  * @APPLE_LICENSE_HEADER_END@
  */
 
+#include <mach/i386/syscall_sw.h>
+
 .text
 .align 2, 0x90
 .globl ___pthread_set_self
 .text
 .align 2, 0x90
 .globl ___pthread_set_self
@@ -28,7 +30,6 @@ ___pthread_set_self:
        pushl   4(%esp)
        pushl   $0
        movl    $3,%eax
        pushl   4(%esp)
        pushl   $0
        movl    $3,%eax
-       lcall   $0x3b,$0
+       MACHDEP_SYSCALL_TRAP
        addl    $8,%esp     
        addl    $8,%esp     
-       movw    %ax,%gs
        ret
        ret