Browse Source

* PS1: call InitHeap to finish the Pascal part of the heap initialization

Nikolay Nikolov 10 months ago
parent
commit
47b4506802
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/ps1/system.pp

+ 3 - 0
rtl/ps1/system.pp

@@ -116,7 +116,10 @@ end;
 begin
   StackLength:=CheckInitialStkLen(stklen);
   StackBottom:=Pointer(PtrUInt($80200000)-PtrUInt(StackLength));
+
+  { Setup heap }
   _InitHeap(pdword(@bss_end),PtrUInt(StackBottom)-PtrUInt(@bss_end));
+  InitHeap;
 
   InOutRes:= 0;
 end.