瀏覽代碼

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

Nikolay Nikolov 1 年之前
父節點
當前提交
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.