mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
TwlSDK内の鍵を使っている時は量産用CPUではブート禁止。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@415 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
d372c4785f
commit
679813af1d
@ -18,6 +18,7 @@
|
||||
ifndef TWL_IPL_COMMONDEFS_
|
||||
TWL_IPL_COMMONDEFS_ = TRUE
|
||||
|
||||
FIRM_USE_TWLSDK_KEYS = TRUE
|
||||
|
||||
ifeq ($(TARGET_FIRM),SYSTEMMENU)
|
||||
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs.sysmenu
|
||||
@ -25,6 +26,10 @@ else
|
||||
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs.firm
|
||||
endif
|
||||
|
||||
ifdef FIRM_USE_TWLSDK_KEYS
|
||||
MACRO_FLAGS += -DFIRM_USE_TWLSDK_KEYS=$(FIRM_USE_TWLSDK_KEYS)
|
||||
endif
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
endif # TWL_IPL_COMMONDEFS_
|
||||
#----- End of commondefs -----
|
||||
|
||||
@ -76,6 +76,19 @@ void OS_BootWithRomHeaderFromFIRM( ROM_Header* rom_header )
|
||||
// post clear
|
||||
mem_list[i++] = NULL;
|
||||
SDK_ASSERT(i <= sizeof(mem_list)/sizeof(mem_list[0]));
|
||||
|
||||
#ifdef FIRM_USE_TWLSDK_KEYS
|
||||
// TwlSDK内の鍵を使っている時は量産用CPUではブートしない
|
||||
#ifdef SDK_ARM9
|
||||
if ( ! ((*(u8*)OS_CHIPTYPE_DEBUGGER_ADDR & OS_CHIPTYPE_DEBUGGER_MASK)) )
|
||||
#else // SDK_ARM7
|
||||
if ( ! ((*(u8*)HWi_WSYS08_ADDR & HWi_WSYS08_OP_OPT_MASK)) )
|
||||
#endif // SDK_ARM7
|
||||
{
|
||||
OS_Terminate();
|
||||
}
|
||||
#endif // FIRM_USE_SDK_KEYS
|
||||
|
||||
REBOOT_Execute(entry, wram_reg, mem_list, code_buf, stack_top, target, scfg, jtag);
|
||||
OS_Terminate();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user