mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 14:39:24 +02:00
+ PS1: set the IsConsole and IsLibrary in the system unit startup
This commit is contained in:
parent
9662462d10
commit
f3ffadb217
@ -123,6 +123,12 @@ begin
|
|||||||
StackLength:=CheckInitialStkLen(stklen);
|
StackLength:=CheckInitialStkLen(stklen);
|
||||||
StackBottom:=Pointer(PtrUInt($80200000)-PtrUInt(StackLength));
|
StackBottom:=Pointer(PtrUInt($80200000)-PtrUInt(StackLength));
|
||||||
|
|
||||||
|
{ Debug printing via writeln (visible in emulator logs) is possible, so
|
||||||
|
pretend to be a console application. }
|
||||||
|
IsConsole := TRUE;
|
||||||
|
{ To be set if this is a library and not a program }
|
||||||
|
IsLibrary := FALSE;
|
||||||
|
|
||||||
{ Setup heap }
|
{ Setup heap }
|
||||||
_InitHeap(pdword(@bss_end),PtrUInt(StackBottom)-PtrUInt(@bss_end));
|
_InitHeap(pdword(@bss_end),PtrUInt(StackBottom)-PtrUInt(@bss_end));
|
||||||
InitHeap;
|
InitHeap;
|
||||||
|
Loading…
Reference in New Issue
Block a user