소스 검색

* 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.