mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 10:29:21 +02:00
haiku: properly pass on the exitcode to the haltproc on x86_64
git-svn-id: trunk@40760 -
This commit is contained in:
parent
d19cb0ee4c
commit
3508ad0d20
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user