From 310b8522c48c239c51d0d0d9d207bd205a7b8da1 Mon Sep 17 00:00:00 2001 From: yutaka Date: Thu, 6 Dec 2007 09:59:06 +0000 Subject: [PATCH] =?UTF-8?q?=E3=81=84=E3=82=89=E3=81=AA=E3=81=84=E3=81=AF?= =?UTF-8?q?=E3=81=9A=E3=81=AE=E3=82=A2=E3=82=A4=E3=83=89=E3=83=AB=E3=82=B9?= =?UTF-8?q?=E3=83=AC=E3=83=83=E3=83=89=E3=82=92=E3=82=B3=E3=83=A1=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=82=A2=E3=82=A6=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@332 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/nandfirm/menu-launcher/ARM7/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build/nandfirm/menu-launcher/ARM7/main.c b/build/nandfirm/menu-launcher/ARM7/main.c index 2a76020f..dfd5cbac 100644 --- a/build/nandfirm/menu-launcher/ARM7/main.c +++ b/build/nandfirm/menu-launcher/ARM7/main.c @@ -37,6 +37,13 @@ static u8 fatfsHeap[FATFS_HEAP_SIZE] __attribute__ ((aligned (32))); */ #define USE_DEBUG_LED +/* + デバッグでアイドルスレッドが必要なときに定義します。 + (最終的にいらないはず) +*/ +//#define USE_IDLE_THREAD + + //#ifdef SDK_FINALROM // FINALROMで無効化 //#undef PROFILE_ENABLE //#undef USE_DEBUG_LED @@ -140,8 +147,10 @@ static BOOL FsInit(void) return TRUE; } +#ifdef USE_IDLE_THREAD static void IdleThread(void* arg) { + (void)arg; OS_EnableInterrupts(); while ( 1 ) { @@ -155,6 +164,7 @@ static void CreateIdleThread( void ) OS_CreateThread( &idle, IdleThread, NULL, &idleStack[16], sizeof(idleStack), OS_THREAD_PRIORITY_MAX ); OS_WakeupThreadDirect( &idle ); } +#endif void TwlSpMain( void ) { @@ -208,7 +218,9 @@ SetDebugLED(0x02); goto end; } +#ifdef USE_IDLE_THREAD CreateIdleThread(); +#endif // 5: after PXI PUSH_PROFILE();