diff --git a/include/common.h b/include/common.h index ca7edcb..b9d296f 100644 --- a/include/common.h +++ b/include/common.h @@ -75,7 +75,7 @@ typedef u8 bool; #define SCREEN_WIDTH_MAX 640 #define SCREEN_HEIGHT_MAX 480 -#define DECLARE_STACK(name, size) u64 name[size / sizeof(u64)] +#define DECLARE_STACK(name, size) u64 name[size / sizeof(u64)] // Stacks grow backwards (towards smaller addresses) #define STACK_START(stack) ((u8*)(&stack) + sizeof(stack)) diff --git a/src/boot.c b/src/boot.c index 5262ed8..ed78784 100644 --- a/src/boot.c +++ b/src/boot.c @@ -2,16 +2,12 @@ #include "nu/nusys.h" -#define OB_MAIN_STACK_SIZE 0x2070 - extern OSThread nuThreadIdle; extern DECLARE_STACK(nuStackIdle, NU_IDLE_STACK_SIZE); extern OSThread obThreadMain; extern DECLARE_STACK(obStackMain, NU_MAIN_STACK_SIZE); -const int test = sizeof(obThreadMain); - void nuIdle(void* arg); void nuBoot(void) {