summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/x86_64/syscall.S
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-08 12:28:18 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-08 12:28:18 +0000
commitbc9ff8040ef8042ba858baf9c28b1825337ce4df (patch)
tree4fc3f9fd5bbc27a1d8d0e55021afc02d298affb9 /libc/sysdeps/linux/x86_64/syscall.S
parenta83c32e036222fc33cd99fd9f97b067b5e6442dd (diff)
fix errno handling with some magical hacks
Diffstat (limited to 'libc/sysdeps/linux/x86_64/syscall.S')
-rw-r--r--libc/sysdeps/linux/x86_64/syscall.S5
1 files changed, 1 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/x86_64/syscall.S b/libc/sysdeps/linux/x86_64/syscall.S
index f6273b75f..86306906a 100644
--- a/libc/sysdeps/linux/x86_64/syscall.S
+++ b/libc/sysdeps/linux/x86_64/syscall.S
@@ -37,10 +37,7 @@ syscall:
movq 8(%rsp),%r9 /* arg6 is on the stack. */
syscall /* Do the system call. */
cmpq $-4095, %rax /* Check %rax for error. */
- jae __error /* Branch forward if it failed. */
+ jae __syscall_error /* Branch forward if it failed. */
ret /* Return to caller. */
-__error:
- jmp __syscall_error
-
.size syscall,.-syscall