mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 19:49:31 +02:00
powerpc: enable SUPPORT_GET_FRAME
git-svn-id: trunk@36698 -
This commit is contained in:
parent
6e3936c534
commit
0b561b6c8f
@ -137,6 +137,7 @@
|
||||
{$define cpumm}
|
||||
{$define cpurox}
|
||||
{$define cpurefshaveindexreg}
|
||||
{$define SUPPORT_GET_FRAME}
|
||||
{$endif powerpc}
|
||||
|
||||
{$ifdef powerpc64}
|
||||
|
@ -1047,12 +1047,14 @@ function fpc_pchar_length(p:pchar):sizeint;assembler;[public,alias:'FPC_PCHAR_LE
|
||||
{$endif FPC_SYSTEM_HAS_FPC_PCHAR_LENGTH}
|
||||
|
||||
|
||||
{$ifndef INTERNAL_BACKTRACE}
|
||||
{$define FPC_SYSTEM_HAS_GET_FRAME}
|
||||
function get_frame:pointer;assembler;{$ifdef SYSTEMINLINE}inline;{$endif} nostackframe;
|
||||
asm
|
||||
{ all abi's I know use r1 as stack pointer }
|
||||
mr r3, r1
|
||||
end;
|
||||
{$endif INTERNAL_BACKTRACE}
|
||||
|
||||
{NOTE: On MACOS, 68000 code might call powerpc code, through the MixedMode manager,
|
||||
(even in the OS in system 9). The pointer to the switching stack frame is then
|
||||
|
Loading…
Reference in New Issue
Block a user