mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 02:09:29 +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;
|
procedure tcpuprocinfo.init_framepointer;
|
||||||
begin
|
begin
|
||||||
{ ToDo : what about system_m68k_embedded? }
|
if not (target_info.system in [system_m68k_amiga]) then
|
||||||
if target_info.system in [system_m68k_linux,system_m68k_netbsd,system_m68k_openbsd] then
|
|
||||||
begin
|
begin
|
||||||
RS_FRAME_POINTER_REG:=RS_A6;
|
RS_FRAME_POINTER_REG:=RS_A6;
|
||||||
NR_FRAME_POINTER_REG:=NR_A6;
|
NR_FRAME_POINTER_REG:=NR_A6;
|
||||||
|
@ -87,11 +87,7 @@ procedure fpc_cpuinit;
|
|||||||
{$define FPC_SYSTEM_HAS_GET_FRAME}
|
{$define FPC_SYSTEM_HAS_GET_FRAME}
|
||||||
function get_frame : pointer; assembler;nostackframe;
|
function get_frame : pointer; assembler;nostackframe;
|
||||||
asm
|
asm
|
||||||
{$if defined(amiga)}
|
move.l fp,d0
|
||||||
move.l a5,d0
|
|
||||||
{$else}
|
|
||||||
move.l a6,d0
|
|
||||||
{$endif}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user