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@584 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
ea8e8d89db
commit
77e47d46f3
@ -43,6 +43,7 @@ static StreamInfo strm; // stream info
|
|||||||
|
|
||||||
const char filename[] = "data/fanfare.32.wav";
|
const char filename[] = "data/fanfare.32.wav";
|
||||||
|
|
||||||
|
//#define DEBUG_LAUNCHER_DUMP
|
||||||
#ifdef DEBUG_LAUNCHER_DUMP
|
#ifdef DEBUG_LAUNCHER_DUMP
|
||||||
// デバグ用。SDに0x02ffc000から0x02ffe000までdump.datというダンプを吐く
|
// デバグ用。SDに0x02ffc000から0x02ffe000までdump.datというダンプを吐く
|
||||||
static void debugWriteToSD( void )
|
static void debugWriteToSD( void )
|
||||||
@ -76,6 +77,11 @@ void TwlMain( void )
|
|||||||
OSTick start, end = 0;
|
OSTick start, end = 0;
|
||||||
BOOL direct_boot = FALSE;
|
BOOL direct_boot = FALSE;
|
||||||
|
|
||||||
|
#ifdef DEBUG_LAUNCHER_DUMP
|
||||||
|
// you should comment out to clear GX/G2/DMA/TM/PAD register in reboot.c to retreive valid boot time
|
||||||
|
STD_TSPrintf((char*)0x02FFCFD0, "\nLauncher Boot Time: %lld usec\n", OS_TicksToMicroSeconds(OS_GetTick()));
|
||||||
|
STD_TSPrintf((char*)0x02FFCFF0, "HOTSTART(0x%08x): %02x\n", HW_NAND_FIRM_HOTSTART_FLAG, *(u8 *)HW_NAND_FIRM_HOTSTART_FLAG);
|
||||||
|
#endif
|
||||||
// システムメニュー初期化----------
|
// システムメニュー初期化----------
|
||||||
SYSM_Init( Alloc, Free ); // OS_Initの前でコールする必要あり。
|
SYSM_Init( Alloc, Free ); // OS_Initの前でコールする必要あり。
|
||||||
OS_Init();
|
OS_Init();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user