summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/shutdown.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-x86/syscalls/shutdown.S')
-rw-r--r--libc/arch-x86/syscalls/shutdown.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/arch-x86/syscalls/shutdown.S b/libc/arch-x86/syscalls/shutdown.S
index 13e8fd9..f224fc6 100644
--- a/libc/arch-x86/syscalls/shutdown.S
+++ b/libc/arch-x86/syscalls/shutdown.S
@@ -4,10 +4,11 @@
ENTRY(shutdown)
pushl %ebx
- pushl %ecx
.cfi_def_cfa_offset 8
.cfi_rel_offset ebx, 0
- .cfi_rel_offset ecx, 4
+ pushl %ecx
+ .cfi_adjust_cfa_offset 4
+ .cfi_rel_offset ecx, 0
mov $13, %ebx
mov %esp, %ecx
addl $12, %ecx
@@ -17,9 +18,8 @@ ENTRY(shutdown)
jb 1f
negl %eax
pushl %eax
- call __set_errno
+ call __set_errno_internal
addl $4, %esp
- orl $-1, %eax
1:
popl %ecx
popl %ebx