summaryrefslogtreecommitdiff
path: root/src/thread/i386/syscall_cp.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/i386/syscall_cp.s')
-rw-r--r--src/thread/i386/syscall_cp.s9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/thread/i386/syscall_cp.s b/src/thread/i386/syscall_cp.s
index 6d8c354b..51905131 100644
--- a/src/thread/i386/syscall_cp.s
+++ b/src/thread/i386/syscall_cp.s
@@ -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