From a8f58de73330902347b8d53028adf559d1294e81 Mon Sep 17 00:00:00 2001 From: gijs Date: Fri, 20 Oct 2023 18:18:33 +0200 Subject: [PATCH] Rename `obIdle` to `nuIdle` --- include/common.h | 1 - linker_scripts/symbols/addr.txt | 2 +- src/boot.c | 6 ++++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/common.h b/include/common.h index 04324ac..82face1 100644 --- a/include/common.h +++ b/include/common.h @@ -315,7 +315,6 @@ extern void __some_logging(const char* format, ...); extern void nuBoot(void); extern void (*nuIdleFunc)(); -extern void obIdle(void*); extern void obMain(void*); extern OSThread obThreadMain; diff --git a/linker_scripts/symbols/addr.txt b/linker_scripts/symbols/addr.txt index 8a10e23..ba5bf35 100644 --- a/linker_scripts/symbols/addr.txt +++ b/linker_scripts/symbols/addr.txt @@ -61,6 +61,7 @@ nuSiMgrThread = 0x80089D9C; nuSiSendMesg = 0x80089CF8; nuSiMgrStop = 0x80089D5C; nuSiMgrRestart = 0x80089D7C; +nuIdle = 0x8007F8E4; obCurrentTime = 0x800C47D0; @@ -1001,7 +1002,6 @@ __virtual_mem_alloc = 0x80070F30; -obIdle = 0x8007F8E4; obThreadIdle = 0x800AF440; obStackIdle = 0x800B17A0; diff --git a/src/boot.c b/src/boot.c index 320b951..66336d3 100644 --- a/src/boot.c +++ b/src/boot.c @@ -4,13 +4,15 @@ extern u8 obStackMain[]; +void nuIdle(void* arg); + void nuBoot(void) { osInitialize(); - osCreateThread(&obThreadIdle, 1, obIdle, NULL, obStackIdle, 0xA); + osCreateThread(&obThreadIdle, 1, nuIdle, NULL, obStackIdle, 0xA); osStartThread(&obThreadIdle); } -void obIdle(void* arg) { +void nuIdle(void* arg) { nuIdleFunc = NULL; nuPiInit();