romロード中、カード読み込み失敗エラーが返ってきたらログを吐くよう変更

ホワイトリストPhase1チェック失敗時ログ吐き強化

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2486 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yoshida_teruhisa 2008-09-10 23:59:15 +00:00
parent 984f8dfcae
commit a6b2d8c7af
2 changed files with 15 additions and 1 deletions

View File

@ -18,6 +18,7 @@
#include <twl.h>
#include "fs_wram.h"
#include <sysmenu.h>
#include <sysmenu/errorLog.h>
/*
Šî{ŠTO
@ -199,6 +200,7 @@ static void FSi_WramThread(void* arg)
card_read_state = HOTSW_ReadCardData( FSiWramWork.card_src, cmd->addr, (u32)cmd->length);
FSiWramWork.card_src = (void *)((u32)FSiWramWork.card_src + (u32)cmd->length);
result = (card_read_state == CARD_READ_SUCCESS) ? cmd->length : 0;
if((card_read_state != CARD_READ_SUCCESS)) ERRORLOG_Printf( "FSi_WramThread: read-card error:%d\n", card_read_state );
break;
case FS_WRAM_COMMAND_WRITE:
result = FS_WriteFile( FSiWramWork.p_file, cmd->addr, cmd->length );

View File

@ -1485,6 +1485,18 @@ static BOOL SYSMi_AuthenticateNTRCardTitle( TitleProperty *pBootTitle)
if(!s_b_dev) {
// デバグ用。ERRORLOG_Init()がすでに呼ばれている事前提
ERRORLOG_Printf( "DHT_PAHSE1_FAILED (sub info): hash0Addr-%08x\n", hash0 );
if(hash0)
{
ERRORLOG_Printf( "DHT_PAHSE1_FAILED (buildtime): date : %s time : %s", __DATE__, __TIME__);
ERRORLOG_Printf( "DHT_PAHSE1_FAILED (sub info): hash0 - %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\n",
hash0[0], hash0[1], hash0[2], hash0[3], hash0[4], hash0[5], hash0[6], hash0[7], hash0[8], hash0[9],
hash0[10], hash0[11], hash0[12], hash0[13], hash0[14], hash0[15], hash0[16], hash0[17], hash0[18], hash0[19]);
ERRORLOG_Printf( "DHT_PAHSE1_FAILED (sub info): calc_hash - %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\n",
s_calc_hash[0], s_calc_hash[1], s_calc_hash[2], s_calc_hash[3], s_calc_hash[4],
s_calc_hash[5], s_calc_hash[6], s_calc_hash[7], s_calc_hash[8], s_calc_hash[9],
s_calc_hash[10], s_calc_hash[11], s_calc_hash[12], s_calc_hash[13], s_calc_hash[14],
s_calc_hash[15], s_calc_hash[16], s_calc_hash[17], s_calc_hash[18], s_calc_hash[19]);
}
UTL_SetFatalError(FATAL_ERROR_DHT_PHASE1_FAILED);
return FALSE;
}
@ -2167,4 +2179,4 @@ static void SYSMi_CutAwayRegionList( u32 *regionlist, u32 start, u32 end )
{
SYSMi_DeleteElementFromList( regionlist, (u32)n );
}
}
}