mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
自作アイドルスレッドの削除
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2196 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
c81eeb9f68
commit
319ce6c53a
@ -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ƒ{ƒ^ƒ“’Ê’m
|
||||
PAD_InitXYButton();
|
||||
/*
|
||||
|
||||
@ -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();
|
||||
/*
|
||||
バッテリー残量チェック
|
||||
*/
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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();
|
||||
/*
|
||||
バッテリー残量チェック
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user