mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +02:00
m68k: fix frame pointer register on atari, and a few other non-amiga systems
git-svn-id: trunk@35204 -
This commit is contained in:
parent
e6029140eb
commit
35ddac66fc
@ -46,8 +46,7 @@ unit cpupi;
|
||||
|
||||
procedure tcpuprocinfo.init_framepointer;
|
||||
begin
|
||||
{ ToDo : what about system_m68k_embedded? }
|
||||
if target_info.system in [system_m68k_linux,system_m68k_netbsd,system_m68k_openbsd] then
|
||||
if not (target_info.system in [system_m68k_amiga]) then
|
||||
begin
|
||||
RS_FRAME_POINTER_REG:=RS_A6;
|
||||
NR_FRAME_POINTER_REG:=NR_A6;
|
||||
|
@ -87,11 +87,7 @@ procedure fpc_cpuinit;
|
||||
{$define FPC_SYSTEM_HAS_GET_FRAME}
|
||||
function get_frame : pointer; assembler;nostackframe;
|
||||
asm
|
||||
{$if defined(amiga)}
|
||||
move.l a5,d0
|
||||
{$else}
|
||||
move.l a6,d0
|
||||
{$endif}
|
||||
move.l fp,d0
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user