diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-08 12:28:18 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-08 12:28:18 +0000 |
commit | bc9ff8040ef8042ba858baf9c28b1825337ce4df (patch) | |
tree | 4fc3f9fd5bbc27a1d8d0e55021afc02d298affb9 /libc/sysdeps/linux/x86_64/syscall.S | |
parent | a83c32e036222fc33cd99fd9f97b067b5e6442dd (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.S | 5 |
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 |