chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kay
[elogind.git]
/
klibc
/
klibc
/
arch
/
x86_64
/
syscall.S
diff --git
a/klibc/klibc/arch/x86_64/syscall.S
b/klibc/klibc/arch/x86_64/syscall.S
index f2c74ae974d8c5a9ef4726d4f55a1d190b88a158..17977978b9efce573462e7169cb7a728be540d6f 100644
(file)
--- a/
klibc/klibc/arch/x86_64/syscall.S
+++ b/
klibc/klibc/arch/x86_64/syscall.S
@@
-15,14
+15,14
@@
__syscall_common:
syscall
cmpq $-4095,%rax
- jb 1f
+ jnb 1f
+ ret
# Error return, must set errno
+1:
negl %eax
movl %eax,errno(%rip) # errno is type int, so 32 bits
orq $-1,%rax # orq $-1 smaller than movq $-1
-
-1:
ret
.size __syscall_common,.-__syscall_common