ロードスレッドおよび検証スレッドにおいて、スタック壊れを起こしていないかチェックし、壊れていたらErrorLogに書き込む処理を追加

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2346 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yoshida_teruhisa 2008-09-01 02:32:48 +00:00
parent 599d8ddde3
commit aaeb2ad540

View File

@ -23,6 +23,7 @@
#include <sysmenu/util_recoveryFile.h>
#include "internal_api.h"
#include "fs_wram.h"
#include <sysmenu/errorLog.h>
// define data-----------------------------------------------------------------
@ -848,6 +849,15 @@ OS_TPrintf("RebootSystem failed: cant read file(%d, %d)\n", source[i], len);
SYSMi_ClearRomLoadSegment( (ROM_Header_Short *)SYSM_APP_ROM_HEADER_BUF );
SYSMi_GetWork()->flags.common.isLoadSucceeded = TRUE;
// ここでスタック壊れていないかチェック
if( OS_STACK_NO_ERROR != OS_GetStackStatus( &s_thread ) )
{
OS_TPrintf("RebootSystem warning: stack was broken!\n");
// デバグ用。ERRORLOG_Init()がすでに呼ばれている事前提
ERRORLOG_Printf( "SYSMi_LoadTitleThreadFunc: stack was broken! %d\n", OS_GetStackStatus( &s_thread ) );
}
return;
ERROR:
@ -1639,6 +1649,14 @@ static void SYSMi_AuthenticateTitleThreadFunc( TitleProperty *pBootTitle )
// ”F<E2809D>Ø
(void)SYSMi_AuthenticateTitleCore( pBootTitle );
// ここでスタック壊れていないかチェック
if( OS_STACK_NO_ERROR != OS_GetStackStatus( &s_auth_thread ) )
{
OS_TPrintf("RebootSystem warning: stack was broken!\n");
// デバグ用。ERRORLOG_Init()がすでに呼ばれている事前提
ERRORLOG_Printf( "SYSMi_AuthenticateTitleThreadFunc: stack was broken! %d\n", OS_GetStackStatus( &s_auth_thread ) );
}
}