mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 04:19:30 +02:00
amicommon: implement StackTop for other Amiga-like systems
git-svn-id: trunk@36697 -
This commit is contained in:
parent
cca38c9f08
commit
6e3936c534
@ -44,6 +44,13 @@
|
||||
System Dependent Structures/Consts
|
||||
*****************************************************************************}
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_STACKTOP}
|
||||
{$define FPC_SYSTEM_HAS_STACKTOP}
|
||||
function StackTop: pointer;
|
||||
begin
|
||||
StackTop:=FindTask(nil)^.tc_SPUpper;
|
||||
end;
|
||||
{$endif FPC_SYSTEM_HAS_STACKTOP}
|
||||
|
||||
const
|
||||
CTRL_C = 20; { Error code on CTRL-C press }
|
||||
|
@ -302,7 +302,7 @@ end;
|
||||
begin
|
||||
IsConsole := TRUE;
|
||||
StackLength := CheckInitialStkLen(InitialStkLen);
|
||||
StackBottom := Sptr - StackLength;
|
||||
StackBottom := StackTop - StackLength;
|
||||
{ OS specific startup }
|
||||
AOS_wbMsg:=nil;
|
||||
ASYS_origDir:=0;
|
||||
|
Loading…
Reference in New Issue
Block a user