summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-02-19 19:18:16 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-02-19 19:18:16 +0000
commit9f213c7e5f55d28207d27fa132ea539d0c267fe0 (patch)
treeb9924df5b2c82994f53a2e1a78b021b66a1bdf49
parenta746bfe6bb459b55b57502a03e773b25d2375c0a (diff)
downloaddrakx-9f213c7e5f55d28207d27fa132ea539d0c267fe0.tar
drakx-9f213c7e5f55d28207d27fa132ea539d0c267fe0.tar.gz
drakx-9f213c7e5f55d28207d27fa132ea539d0c267fe0.tar.bz2
drakx-9f213c7e5f55d28207d27fa132ea539d0c267fe0.tar.xz
drakx-9f213c7e5f55d28207d27fa132ea539d0c267fe0.zip
Assume we got an error if sycall returned %rax in [ -1 .. -127 ]
-rw-r--r--mdk-stage1/dietlibc/x86_64/unified.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdk-stage1/dietlibc/x86_64/unified.S b/mdk-stage1/dietlibc/x86_64/unified.S
index 29ac1bcb0..48bb9a4fa 100644
--- a/mdk-stage1/dietlibc/x86_64/unified.S
+++ b/mdk-stage1/dietlibc/x86_64/unified.S
@@ -16,8 +16,8 @@ __unified_syscall:
movzbl %al, %eax
mov %rcx, %r10
syscall
- cmpq $0, %rax
- jge .Lnoerror
+ cmpq $-128, %rax
+ jbe .Lnoerror
negl %eax
pushq %rax
call __errno_location