summaryrefslogtreecommitdiff
path: root/src/code/main.c
diff options
context:
space:
mode:
authorTharo <17233964+Thar0@users.noreply.github.com>2024-12-19 05:38:44 +0000
committerGitHub <noreply@github.com>2024-12-19 16:38:44 +1100
commit047c505b96287d82dff47c105c909a9965fde9ac (patch)
treeca84ac841df9db19cb293359e62de2f66d05f20d /src/code/main.c
parent5d4931787665b6dfcbf350ac48e3d6687bfc7685 (diff)
Remove gSystemHeap and the system_heap spec segment, use _buffersSegmentEnd to represent the start of the system heap (#1767)
Diffstat (limited to 'src/code/main.c')
-rw-r--r--src/code/main.c2
1 files changed, 1 insertions, 1 deletions
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);