dummy implementation of set_thread_area
[musl] / src / thread / i386 / syscall_cp.s
index 6d8c354..05e867a 100644 (file)
@@ -1,6 +1,6 @@
 .text
 .global __syscall_cp_asm
-.type   __syscall_cp_asm,%function
+.type   __syscall_cp_asm,@function
 __syscall_cp_asm:
        pushl %ebx
        pushl %esi
@@ -28,9 +28,8 @@ __syscall_cp_asm:
        popl %edi
        popl %esi
        popl %ebx
+       xorl %edx,%edx
+       movl 4(%esp),%ecx
+       movl %edx,(%ecx)
        ret
-2:     xorl %eax,%eax
-       movl %eax,4(%ecx)
-       movl %eax,(%ecx)
-       pushl $-1
-       call __cancel
+2:     call __cancel