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

git-svn-id: trunk@40760 -
This commit is contained in:
Károly Balogh 2019-01-04 04:08:00 +00:00
parent d19cb0ee4c
commit 3508ad0d20

View File

@ -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 }