summaryrefslogtreecommitdiff
path: root/src/code/main.c
diff options
context:
space:
mode:
authorEllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>2021-09-30 03:13:31 +0100
committerGitHub <noreply@github.com>2021-09-29 22:13:31 -0400
commitbd9e21b165a2589b2bc066865b9557a447c926c0 (patch)
treed2db63d4ff8f496d6be011035c691e59cb528fce /src/code/main.c
parentf80b08450fe6ba7e54981fa104cc3790dca8e1d1 (diff)
`z_nmi_buff` OK, `code_8010C1B0` split and OK (#334)
* nmi_buff OK, code_8010C1B0 split and OK * COLD_RESET * spec * Fix lifemeter bss * Rename variable
Diffstat (limited to 'src/code/main.c')
-rw-r--r--src/code/main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/code/main.c b/src/code/main.c
index 75101c8ab..648536aef 100644
--- a/src/code/main.c
+++ b/src/code/main.c
@@ -1,3 +1,8 @@
+/**
+ * This file has unmigrated bss. It is not practical to migrate it until we have a better way of dealing with bss
+ * reordering than just prevent_bss_reordering.h: there is too much of it to control, and it cannot be split into
+ * separate files since most of it is at addresses ending in 8.
+ */
#include "global.h"
void Main(void* arg) {
@@ -29,18 +34,18 @@ void Main(void* arg) {
osCreateMesgQueue(&mainIrqmgrCallbackQueue, mainIrqCallbackBuffer, ARRAY_COUNT(mainIrqCallbackBuffer));
StackCheck_Init(&schedStackEntry, schedStack, schedStack + sizeof(schedStack), 0, 0x100, "sched");
- Sched_Init(&schedContext, schedStack + sizeof(schedStack), Z_PRIORITY_SCHED, D_8009B290, 1, &gIrqMgr);
+ Sched_Init(&gSchedContext, schedStack + sizeof(schedStack), Z_PRIORITY_SCHED, D_8009B290, 1, &gIrqMgr);
CIC6105_AddRomInfoFaultPage();
IrqMgr_AddClient(&gIrqMgr, &mainIrqmgrCallbackNode, &mainIrqmgrCallbackQueue);
StackCheck_Init(&audioStackEntry, audioStack, audioStack + sizeof(audioStack), 0, 0x100, "audio");
- AudioMgr_Init(&audioContext, audioStack + sizeof(audioStack), Z_PRIORITY_AUDIOMGR, 0xA, &schedContext, &gIrqMgr);
+ AudioMgr_Init(&audioContext, audioStack + sizeof(audioStack), Z_PRIORITY_AUDIOMGR, 0xA, &gSchedContext, &gIrqMgr);
StackCheck_Init(&padmgrStackEntry, padmgrStack, padmgrStack + sizeof(padmgrStack), 0, 0x100, "padmgr");
Padmgr_Start(&siEventCallbackQueue, &gIrqMgr, 7, Z_PRIORITY_PADMGR, padmgrStack + sizeof(padmgrStack));
-
+
AudioMgr_Unlock(&audioContext);
StackCheck_Init(&graphStackEntry, graphStack, graphStack + sizeof(graphStack), 0, 0x100, "graph");