Browse Source

haiku: properly pass on the exitcode to the haltproc on x86_64

git-svn-id: trunk@40760 -
Károly Balogh 6 năm trước cách đây
mục cha
commit
3508ad0d20
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      rtl/haiku/system.pp

+ 9 - 0
rtl/haiku/system.pp

@@ -34,6 +34,7 @@ function disable_debugger(state : integer): integer; cdecl; external 'root' name
 {*****************************************************************************
                          System Dependent Exit code
 *****************************************************************************}
+{$ifdef i386}
 procedure prthaltproc;external name '_haltproc';
 
 procedure system_exit;
@@ -42,6 +43,14 @@ begin
     jmp prthaltproc
   end;
 End;
+{$else i386}
+procedure haltproc(exitcode: longint); cdecl; external name '_haltproc';
+
+procedure system_exit;
+begin
+  haltproc(ExitCode);
+end;
+{$endif i386}
 
 
 { OS dependant parts  }