* converted _FPC_libc21_haltproc into a pascal subroutine so stack alignment is kept

git-svn-id: trunk@43013 -
This commit is contained in:
florian 2019-09-15 17:17:32 +00:00
parent 3e6e72118b
commit 719ff5fb4c

View File

@ -103,9 +103,11 @@ asm
hlt hlt
end; end;
procedure _FPC_libc21_haltproc(e: longint); cdecl; assembler; public name '_haltproc'; procedure _FPC_libc21_haltproc(e: longint); cdecl; public name '_haltproc';
asm begin
push e libc_exit(e);
call libc_exit { we should never return from libc_exit }
hlt asm
end; hlt
end;
end;