mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
ロードスレッドおよび検証スレッドにおいて、スタック壊れを起こしていないかチェックし、壊れていたらErrorLogに書き込む処理を追加
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2346 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
599d8ddde3
commit
aaeb2ad540
@ -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 ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user