summaryrefslogtreecommitdiff
path: root/src/boot_O2_g3
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2023-04-18 17:50:34 -0400
committerGitHub <noreply@github.com>2023-04-18 17:50:34 -0400
commit4647ebb91b9646d92d85929814815e48fa6e44ac (patch)
tree8735fcae56bde31af7cb818cb9a6266b2a25e1ca /src/boot_O2_g3
parent823746d49530318331f29af92fa924a15f2482a1 (diff)
`stackcheck.h` (#1204)
* stackcheck.h * warning * Update src/boot_O2/stackcheck.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update src/boot_O2/stackcheck.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update src/boot_O2/stackcheck.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * stack * format * bss * review * review --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Diffstat (limited to 'src/boot_O2_g3')
-rw-r--r--src/boot_O2_g3/boot_main.c12
-rw-r--r--src/boot_O2_g3/fault.c1
-rw-r--r--src/boot_O2_g3/idle.c2
-rw-r--r--src/boot_O2_g3/irqmgr.c1
-rw-r--r--src/boot_O2_g3/z_std_dma.c1
5 files changed, 10 insertions, 7 deletions
diff --git a/src/boot_O2_g3/boot_main.c b/src/boot_O2_g3/boot_main.c
index 061458a1d..6a561992b 100644
--- a/src/boot_O2_g3/boot_main.c
+++ b/src/boot_O2_g3/boot_main.c
@@ -1,22 +1,22 @@
#include "prevent_bss_reordering.h"
#include "global.h"
#include "stack.h"
+#include "stackcheck.h"
StackEntry sBootStackInfo;
OSThread sIdleThread;
-STACK(sIdleThreadStack, 0x400);
+STACK(sIdleStack, 0x400);
StackEntry sIdleStackInfo;
-STACK(sBootThreadStack, 0x400);
+STACK(sBootStack, 0x400);
void bootproc(void) {
- StackCheck_Init(&sBootStackInfo, sBootThreadStack, STACK_TOP(sBootThreadStack), 0, -1, "boot");
+ StackCheck_Init(&sBootStackInfo, sBootStack, STACK_TOP(sBootStack), 0, -1, "boot");
osMemSize = osGetMemSize();
func_800818F4();
osInitialize();
osUnmapTLBAll();
gCartHandle = osCartRomInit();
- StackCheck_Init(&sIdleStackInfo, sIdleThreadStack, STACK_TOP(sIdleThreadStack), 0, 0x100, "idle");
- osCreateThread(&sIdleThread, Z_THREAD_ID_IDLE, Idle_ThreadEntry, NULL, STACK_TOP(sIdleThreadStack),
- Z_PRIORITY_IDLE);
+ StackCheck_Init(&sIdleStackInfo, sIdleStack, STACK_TOP(sIdleStack), 0, 0x100, "idle");
+ osCreateThread(&sIdleThread, Z_THREAD_ID_IDLE, Idle_ThreadEntry, NULL, STACK_TOP(sIdleStack), Z_PRIORITY_IDLE);
osStartThread(&sIdleThread);
}
diff --git a/src/boot_O2_g3/fault.c b/src/boot_O2_g3/fault.c
index 134b120dc..5e4f8e24a 100644
--- a/src/boot_O2_g3/fault.c
+++ b/src/boot_O2_g3/fault.c
@@ -2,6 +2,7 @@
#include "global.h"
#include "stack.h"
#include "vt.h"
+#include "stackcheck.h"
extern FaultThreadStruct* sFaultContext;
extern f32 D_8009BE54;
diff --git a/src/boot_O2_g3/idle.c b/src/boot_O2_g3/idle.c
index 40bcf5d0e..2b8a88728 100644
--- a/src/boot_O2_g3/idle.c
+++ b/src/boot_O2_g3/idle.c
@@ -1,7 +1,7 @@
-#include "prevent_bss_reordering.h"
#include "global.h"
#include "stack.h"
#include "buffers.h"
+#include "stackcheck.h"
u8 D_80096B20 = 1;
vu8 gViConfigUseDefault = 1;
diff --git a/src/boot_O2_g3/irqmgr.c b/src/boot_O2_g3/irqmgr.c
index 152c69b89..424451a5b 100644
--- a/src/boot_O2_g3/irqmgr.c
+++ b/src/boot_O2_g3/irqmgr.c
@@ -1,4 +1,5 @@
#include "global.h"
+#include "stackcheck.h"
vs32 gIrqMgrResetStatus = 0;
volatile OSTime sIrqMgrResetTime = 0;
diff --git a/src/boot_O2_g3/z_std_dma.c b/src/boot_O2_g3/z_std_dma.c
index dd34d9e87..00d894f74 100644
--- a/src/boot_O2_g3/z_std_dma.c
+++ b/src/boot_O2_g3/z_std_dma.c
@@ -1,6 +1,7 @@
#include "prevent_bss_reordering.h"
#include "global.h"
#include "stack.h"
+#include "stackcheck.h"
u32 sDmaMgrDmaBuffSize = 0x2000;