summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/mount.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-x86/syscalls/mount.S')
-rw-r--r--libc/arch-x86/syscalls/mount.S19
1 files changed, 11 insertions, 8 deletions
diff --git a/libc/arch-x86/syscalls/mount.S b/libc/arch-x86/syscalls/mount.S
index cc1a518..0537528 100644
--- a/libc/arch-x86/syscalls/mount.S
+++ b/libc/arch-x86/syscalls/mount.S
@@ -4,16 +4,20 @@
ENTRY(mount)
pushl %ebx
+ .cfi_def_cfa_offset 8
+ .cfi_rel_offset ebx, 0
pushl %ecx
+ .cfi_adjust_cfa_offset 4
+ .cfi_rel_offset ecx, 0
pushl %edx
+ .cfi_adjust_cfa_offset 4
+ .cfi_rel_offset edx, 0
pushl %esi
+ .cfi_adjust_cfa_offset 4
+ .cfi_rel_offset esi, 0
pushl %edi
- .cfi_def_cfa_offset 20
- .cfi_rel_offset ebx, 0
- .cfi_rel_offset ecx, 4
- .cfi_rel_offset edx, 8
- .cfi_rel_offset esi, 12
- .cfi_rel_offset edi, 16
+ .cfi_adjust_cfa_offset 4
+ .cfi_rel_offset edi, 0
mov 24(%esp), %ebx
mov 28(%esp), %ecx
mov 32(%esp), %edx
@@ -25,9 +29,8 @@ ENTRY(mount)
jb 1f
negl %eax
pushl %eax
- call __set_errno
+ call __set_errno_internal
addl $4, %esp
- orl $-1, %eax
1:
popl %edi
popl %esi