.text
.global __syscall_cp_asm
-.type __syscall_cp_asm,%function
+.type __syscall_cp_asm,@function
__syscall_cp_asm:
pushl %ebx
pushl %esi
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 pthread_exit
+2: call __cancel