mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-04 06:58:34 +02:00
* implemented _FPC_haltproc and Default_IRQ_handler in pascal, resolves issue #32633
git-svn-id: trunk@37545 -
This commit is contained in:
parent
c7d5525b56
commit
3a6f1fda78
@ -1,24 +1,19 @@
|
||||
uses
|
||||
intrinsics;
|
||||
|
||||
procedure PASCALMAIN; external name 'PASCALMAIN';
|
||||
|
||||
procedure _FPC_haltproc; assembler; nostackframe; public name '_haltproc';noreturn;
|
||||
asm
|
||||
cli
|
||||
.Lhalt:
|
||||
{$ifdef RELBRANCHES}
|
||||
rjmp .Lhalt
|
||||
{$else RELBRANCHES}
|
||||
jmp .Lhalt
|
||||
{$endif RELBRANCHES}
|
||||
procedure _FPC_haltproc; public name '_haltproc';noreturn;
|
||||
begin
|
||||
avr_cli;
|
||||
while true do
|
||||
;
|
||||
end;
|
||||
|
||||
procedure Default_IRQ_handler; assembler; nostackframe; public name '_Default_IRQ_handler';noreturn;
|
||||
asm
|
||||
.Lloop:
|
||||
{$ifdef RELBRANCHES}
|
||||
rjmp .Lloop
|
||||
{$else RELBRANCHES}
|
||||
jmp .Lloop
|
||||
{$endif RELBRANCHES}
|
||||
procedure Default_IRQ_handler; public name '_Default_IRQ_handler';noreturn;
|
||||
begin
|
||||
while true do
|
||||
;
|
||||
end;
|
||||
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user