From 047c505b96287d82dff47c105c909a9965fde9ac Mon Sep 17 00:00:00 2001 From: Tharo <17233964+Thar0@users.noreply.github.com> Date: Thu, 19 Dec 2024 05:38:44 +0000 Subject: Remove gSystemHeap and the system_heap spec segment, use _buffersSegmentEnd to represent the start of the system heap (#1767) --- src/code/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/code') diff --git a/src/code/main.c b/src/code/main.c index 953cac7c0..13dd030c5 100644 --- a/src/code/main.c +++ b/src/code/main.c @@ -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); -- cgit v1.2.3