Commited code that should not be there

This commit is contained in:
gijs 2023-10-22 00:12:55 +02:00
parent 0872cce98b
commit 2f423e3bcb
2 changed files with 1 additions and 5 deletions

View File

@ -75,7 +75,7 @@ typedef u8 bool;
#define SCREEN_WIDTH_MAX 640 #define SCREEN_WIDTH_MAX 640
#define SCREEN_HEIGHT_MAX 480 #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) // Stacks grow backwards (towards smaller addresses)
#define STACK_START(stack) ((u8*)(&stack) + sizeof(stack)) #define STACK_START(stack) ((u8*)(&stack) + sizeof(stack))

View File

@ -2,16 +2,12 @@
#include "nu/nusys.h" #include "nu/nusys.h"
#define OB_MAIN_STACK_SIZE 0x2070
extern OSThread nuThreadIdle; extern OSThread nuThreadIdle;
extern DECLARE_STACK(nuStackIdle, NU_IDLE_STACK_SIZE); extern DECLARE_STACK(nuStackIdle, NU_IDLE_STACK_SIZE);
extern OSThread obThreadMain; extern OSThread obThreadMain;
extern DECLARE_STACK(obStackMain, NU_MAIN_STACK_SIZE); extern DECLARE_STACK(obStackMain, NU_MAIN_STACK_SIZE);
const int test = sizeof(obThreadMain);
void nuIdle(void* arg); void nuIdle(void* arg);
void nuBoot(void) { void nuBoot(void) {