mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 20:59:42 +02:00
* converted _FPC_libc21_haltproc into a pascal subroutine so stack alignment is kept
git-svn-id: trunk@43013 -
This commit is contained in:
parent
3e6e72118b
commit
719ff5fb4c
@ -103,9 +103,11 @@ asm
|
||||
hlt
|
||||
end;
|
||||
|
||||
procedure _FPC_libc21_haltproc(e: longint); cdecl; assembler; public name '_haltproc';
|
||||
asm
|
||||
push e
|
||||
call libc_exit
|
||||
hlt
|
||||
end;
|
||||
procedure _FPC_libc21_haltproc(e: longint); cdecl; public name '_haltproc';
|
||||
begin
|
||||
libc_exit(e);
|
||||
{ we should never return from libc_exit }
|
||||
asm
|
||||
hlt
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user