X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fi386%2Fsyscall_cp.s;h=05e867a146ec90bd76658ca661141c22496ba500;hb=46702f68f98244f7384d6ac1742a452f0d7a2610;hp=6f98a779774889c893690830499fe5b174034bf4;hpb=feee98903cd8119d9a3db62589246a940f44a9f5;p=musl diff --git a/src/thread/i386/syscall_cp.s b/src/thread/i386/syscall_cp.s index 6f98a779..05e867a1 100644 --- a/src/thread/i386/syscall_cp.s +++ b/src/thread/i386/syscall_cp.s @@ -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 pthread_exit +2: call __cancel