浏览代码

* fixed syscall return value checking

Jonas Maebe 21 年之前
父节点
当前提交
7afabeb8a9
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 7 4
      rtl/linux/i386/syscall.inc

+ 7 - 4
rtl/linux/i386/syscall.inc

@@ -69,8 +69,8 @@ asm
   movl sysnr,%eax
   movl sysnr,%eax
   movl param1,%ebx
   movl param1,%ebx
   int $0x80
   int $0x80
-  testl %eax,%eax
-  jns   .LSyscOK
+  cmpl  $-4095,%eax
+  jb   .LSyscOK
   negl  %eax
   negl  %eax
 {$ifdef VER1_0}
 {$ifdef VER1_0}
   movl  %eax,Errno
   movl  %eax,Errno
@@ -351,7 +351,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.13  2004-03-03 22:10:48  peter
+  Revision 1.14  2004-03-10 21:41:53  jonas
+    * fixed syscall return value checking
+
+  Revision 1.13  2004/03/03 22:10:48  peter
     * fixed previous commit
     * fixed previous commit
 
 
   Revision 1.12  2004/03/03 22:03:10  peter
   Revision 1.12  2004/03/03 22:03:10  peter
@@ -392,4 +395,4 @@ end;
 
 
 
 
 }
 }
- 
+