x86 libc: Fix the range to check the error
The spec says "A value in the range between -4095 to -1 indicates an error" (not -129). This was pointed out in the comment in 22039. Change-Id: I11b7c45015a9e4ccf09aed5364a889437eab6ab8 Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
This commit is contained in:
parent
4d9b75a9b0
commit
5288fee835
@ -32,7 +32,7 @@ syscall:
|
||||
|
||||
int $0x80
|
||||
|
||||
cmpl $-129, %eax
|
||||
cmpl $-4095, %eax
|
||||
jb 1f
|
||||
negl %eax
|
||||
pushl %eax
|
||||
|
Loading…
x
Reference in New Issue
Block a user