From 319ce6c53a0caf606f8a974a2e23db80bad87f42 Mon Sep 17 00:00:00 2001 From: yutaka Date: Wed, 20 Aug 2008 02:36:03 +0000 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E4=BD=9C=E3=82=A2=E3=82=A4=E3=83=89?= =?UTF-8?q?=E3=83=AB=E3=82=B9=E3=83=AC=E3=83=83=E3=83=89=E3=81=AE=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= 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@2196 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- .../gcdfirm/sdmc-launcher-writer/ARM7/main.c | 19 ------------------- build/gcdfirm/sdmc-launcher/ARM7/main.c | 19 ------------------- build/nandfirm/menu-launcher/ARM7/main.c | 19 ------------------- build/nandfirm/sdmc-launcher/ARM7/main.c | 19 ------------------- 4 files changed, 76 deletions(-) diff --git a/build/gcdfirm/sdmc-launcher-writer/ARM7/main.c b/build/gcdfirm/sdmc-launcher-writer/ARM7/main.c index c3f3c796..18bb228b 100644 --- a/build/gcdfirm/sdmc-launcher-writer/ARM7/main.c +++ b/build/gcdfirm/sdmc-launcher-writer/ARM7/main.c @@ -51,23 +51,6 @@ static u8 step = 0x00; static u8* const nor = (u8*)HW_TWL_MAIN_MEM; static u8* const nand = (u8*)HW_TWL_MAIN_MEM + offsetof(NANDHeader,l); -static OSThread idleThread; -static u64 idleStack[32]; -static void IdleThread(void* arg) -{ -#pragma unused(arg) - OS_EnableInterrupts(); - while (1) - { - OS_Halt(); - } -} -static void CreateIdleThread(void) -{ - OS_CreateThread(&idleThread, IdleThread, NULL, &idleStack[32], sizeof(idleStack), OS_THREAD_PRIORITY_MAX); - OS_WakeupThreadDirect(&idleThread); -} - /*************************************************************** PreInit @@ -93,8 +76,6 @@ static void PostInit(void) { MCUi_WriteRegister( MCU_REG_BL_ADDR, MCU_REG_BL_BRIGHTNESS_MASK ); PM_BackLightOn( TRUE ); - // アイドルスレッドの作成 - CreateIdleThread(); // XYボタン通知 PAD_InitXYButton(); /* diff --git a/build/gcdfirm/sdmc-launcher/ARM7/main.c b/build/gcdfirm/sdmc-launcher/ARM7/main.c index 98a2da7a..f15e5828 100644 --- a/build/gcdfirm/sdmc-launcher/ARM7/main.c +++ b/build/gcdfirm/sdmc-launcher/ARM7/main.c @@ -94,23 +94,6 @@ static BOOL SetDebugLED(u8 pattern) static ROM_Header* const rh= (ROM_Header*)HW_TWL_ROM_HEADER_BUF; -static OSThread idleThread; -static u64 idleStack[32]; -static void IdleThread(void* arg) -{ -#pragma unused(arg) - OS_EnableInterrupts(); - while (1) - { - OS_Halt(); - } -} -static void CreateIdleThread(void) -{ - OS_CreateThread(&idleThread, IdleThread, NULL, &idleStack[32], sizeof(idleStack), OS_THREAD_PRIORITY_MAX); - OS_WakeupThreadDirect(&idleThread); -} - /*************************************************************** PreInit @@ -144,8 +127,6 @@ static void PostInit(void) // マウント情報の初期化 FS_InitMountInfo(FALSE, TRUE); - // アイドルスレッドの作成 - CreateIdleThread(); /* バッテリー残量チェック */ diff --git a/build/nandfirm/menu-launcher/ARM7/main.c b/build/nandfirm/menu-launcher/ARM7/main.c index 9c62b3ca..660813d7 100644 --- a/build/nandfirm/menu-launcher/ARM7/main.c +++ b/build/nandfirm/menu-launcher/ARM7/main.c @@ -73,23 +73,6 @@ static char* debugPtr = (char*)PRINT_MEMORY_ADDR; static ROM_Header* const rh= (ROM_Header*)HW_TWL_ROM_HEADER_BUF; -static OSThread idleThread; -static u64 idleStack[32]; -static void IdleThread(void* arg) -{ -#pragma unused(arg) - OS_EnableInterrupts(); - while (1) - { - OS_Halt(); - } -} -static void CreateIdleThread(void) -{ - OS_CreateThread(&idleThread, IdleThread, NULL, &idleStack[32], sizeof(idleStack), OS_THREAD_PRIORITY_MAX); - OS_WakeupThreadDirect(&idleThread); -} - /*************************************************************** PreInit @@ -134,8 +117,6 @@ static void PostInit(void) // マウント情報の初期化 FS_InitMountInfo(TRUE, FALSE); - // アイドルスレッドの作成 - CreateIdleThread(); // 5: after CreateIdleThread PUSH_PROFILE(); SetDebugLED(++step); // 0x86 diff --git a/build/nandfirm/sdmc-launcher/ARM7/main.c b/build/nandfirm/sdmc-launcher/ARM7/main.c index c2c6314f..e00a5d81 100644 --- a/build/nandfirm/sdmc-launcher/ARM7/main.c +++ b/build/nandfirm/sdmc-launcher/ARM7/main.c @@ -73,23 +73,6 @@ static char* debugPtr = (char*)PRINT_MEMORY_ADDR; static ROM_Header* const rh= (ROM_Header*)HW_TWL_ROM_HEADER_BUF; -static OSThread idleThread; -static u64 idleStack[32]; -static void IdleThread(void* arg) -{ -#pragma unused(arg) - OS_EnableInterrupts(); - while (1) - { - OS_Halt(); - } -} -static void CreateIdleThread(void) -{ - OS_CreateThread(&idleThread, IdleThread, NULL, &idleStack[32], sizeof(idleStack), OS_THREAD_PRIORITY_MAX); - OS_WakeupThreadDirect(&idleThread); -} - /*************************************************************** PreInit @@ -132,8 +115,6 @@ static void PostInit(void) AES_Init(THREAD_PRIO_AES); // for encrypted NAND // マウント情報の初期化 FS_InitMountInfo(FALSE, TRUE); - // アイドルスレッドの作成 - CreateIdleThread(); /* バッテリー残量チェック */