Browse Source

* More errno changes

marco 23 years ago
parent
commit
82f9961048
1 changed files with 3 additions and 3 deletions
  1. 3 3
      rtl/bsd/i386/syscall.inc

+ 3 - 3
rtl/bsd/i386/syscall.inc

@@ -37,11 +37,11 @@ procedure actualsyscall; assembler; {inline requires a dummy push IIRC}
          ret
          ret
 .LErrorcode:
 .LErrorcode:
 	 {$ifdef ErrnoWord}
 	 {$ifdef ErrnoWord}
-          movw  %bx,Errno
+          movw  %ax,Errno
 	 {$else}
 	 {$else}
-          movl %ebx,Errno
+          movl %eax,Errno
 	 {$endif}
 	 {$endif}
-//       mov $-1,%eax
+       mov $-1,%eax
    end;
    end;
 
 
 function Do_SysCall(sysnr:LONGINT):longint; assembler; [public,alias:'FPC_DOSYS0'];
 function Do_SysCall(sysnr:LONGINT):longint; assembler; [public,alias:'FPC_DOSYS0'];