Просмотр исходного кода

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

Nikolay Nikolov 1 год назад
Родитель
Сommit
47b4506802
1 измененных файлов с 3 добавлено и 0 удалено
  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.