summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/d/d_main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/d/d_main.cpp b/src/d/d_main.cpp
index aac41dd6..feb4ea6a 100644
--- a/src/d/d_main.cpp
+++ b/src/d/d_main.cpp
@@ -6,10 +6,6 @@
#include "rvl/OS.h"
-OSThread MAIN_THREAD;
-
-#define STACK_SIZE 0xF000
-
void dMain::Create() {
dSys_c::create();
dSys_c::setBlack(false);
@@ -27,7 +23,11 @@ void *dMain::main01(void *arg) {
return nullptr;
}
+#define STACK_SIZE 0xF000
+
void main(int argc, char **argv) {
+ static OSThread MAIN_THREAD;
+
u8 pStackBase[STACK_SIZE] __attribute__((aligned(32)));
fn_80006C20();