Remove gSystemHeap and the system_heap spec segment, use _buffersSegmentEnd to represent the start of the system heap (#1767)

This commit is contained in:
Tharo
2024-12-19 05:38:44 +00:00
committed by GitHub
parent 5d49317876
commit 047c505b96
7 changed files with 4 additions and 18 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ void Main(void* arg) {
Check_RegionIsSupported();
Check_ExpansionPak();
sysHeap = (uintptr_t)SEGMENT_START(system_heap);
sysHeap = (uintptr_t)SEGMENT_END(buffers);
fb = FRAMEBUFFERS_START_ADDR;
gSystemHeapSize = fb - sysHeap;
SystemHeap_Init((void*)sysHeap, gSystemHeapSize);