From 5288fee835a6e52d7870b3ee3320a5a3ddb96f34 Mon Sep 17 00:00:00 2001 From: Jun Nakajima Date: Fri, 17 Jun 2011 14:37:50 -0700 Subject: [PATCH] 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 --- libc/arch-x86/bionic/syscall.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/arch-x86/bionic/syscall.S b/libc/arch-x86/bionic/syscall.S index 3cca85c4e..8370f0be0 100644 --- a/libc/arch-x86/bionic/syscall.S +++ b/libc/arch-x86/bionic/syscall.S @@ -32,7 +32,7 @@ syscall: int $0x80 - cmpl $-129, %eax + cmpl $-4095, %eax jb 1f negl %eax pushl %eax