(変更者:akabane_jumpei)活栓挿抜ライブラリの名称変更。Card→hotsw

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@264 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
(no author) 2007-11-27 05:57:35 +00:00
parent 52ff872435
commit cd48a3fd5f
10 changed files with 23 additions and 28 deletions

View File

@ -172,9 +172,10 @@ TwlSpMain(void)
BOOT_Init(); BOOT_Init();
// 活栓挿抜機能初期化 // 活栓挿抜機能初期化
Cardm_Init(); HOTSW_Init();
// カードがささっていたらブート開始 // カードがささっていたらブート開始
(void)Card_Boot(); (void)HOTSW_Boot();
while (TRUE) while (TRUE)
{ {

View File

@ -22,7 +22,7 @@ include $(TWLIPL_ROOT)/build/buildtools/commondefs
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
SUBDIRS = sysmenu settings mb_loader acsign boot card SUBDIRS = sysmenu settings mb_loader acsign boot hotsw
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------

View File

@ -81,11 +81,11 @@ static CardBootFunction s_funcTable[] = {
// Function Describe // Function Describe
// =========================================================================== // ===========================================================================
/*---------------------------------------------------------------------------* /*---------------------------------------------------------------------------*
Name: Card_Init Name: HOTSW_Init
Arguments: None. Arguments: None.
Returns: None. Returns: None.
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
void Cardm_Init(void) void HOTSW_Init(void)
{ {
OS_InitTick(); OS_InitTick();
OS_InitThread(); OS_InitThread();
@ -118,10 +118,10 @@ void Cardm_Init(void)
OS_WakeupThreadDirect(&s_MCThread); OS_WakeupThreadDirect(&s_MCThread);
// Boot Segment バッファの設定 // Boot Segment バッファの設定
Card_SetBootSegmentBuffer((void *)SYSM_CARD_ROM_HEADER_BAK, SYSM_CARD_ROM_HEADER_SIZE ); HOTSW_SetBootSegmentBuffer((void *)SYSM_CARD_ROM_HEADER_BAK, SYSM_CARD_ROM_HEADER_SIZE );
// Secure Segment バッファの設定 // Secure Segment バッファの設定
Card_SetSecureSegmentBuffer((void *)SYSM_CARD_NTR_SECURE_BUF, SECURE_AREA_SIZE ); HOTSW_SetSecureSegmentBuffer((void *)SYSM_CARD_NTR_SECURE_BUF, SECURE_AREA_SIZE );
// モジュールロード用スレッドの生成 // モジュールロード用スレッドの生成
/* OS_CreateThread(&s_MLThread, /* OS_CreateThread(&s_MLThread,
@ -142,14 +142,14 @@ void Cardm_Init(void)
} }
/* ----------------------------------------------------------------- /* -----------------------------------------------------------------
* Card_BootŠÖ<EFBFBD> * HOTSW_BootŠÖ<EFBFBD>
* *
* *
* *
* BootSegmentBuffer SecureSegmentBufferの設定を行ってから * BootSegmentBuffer SecureSegmentBufferの設定を行ってから
* *
* ----------------------------------------------------------------- */ * ----------------------------------------------------------------- */
BOOL Card_Boot(void) BOOL HOTSW_Boot(void)
{ {
s32 tempLockID; s32 tempLockID;
BOOL retval = TRUE; BOOL retval = TRUE;
@ -258,7 +258,7 @@ BOOL Card_Boot(void)
// ID読み込み // ID読み込み
s_funcTable[s_cbData.cardType].ReadID_G(&s_cbData); s_funcTable[s_cbData.cardType].ReadID_G(&s_cbData);
// 常駐モジュール残りを指定先に転送 // 常駐モジュール残りを指定先に転送
Card_LoadStaticModule(); HOTSW_LoadStaticModule();
// デバッグ出力 // デバッグ出力
ShowRomHeaderData(); ShowRomHeaderData();
@ -290,13 +290,13 @@ BOOL Card_Boot(void)
} }
/* ----------------------------------------------------------------- /* -----------------------------------------------------------------
* Card_LoadStaticModulerŠÖ<EFBFBD> * HOTSW_LoadStaticModuleŠÖ<EFBFBD>
* *
* ARM7,9 * ARM7,9
* *
* *
* ----------------------------------------------------------------- */ * ----------------------------------------------------------------- */
void Card_LoadStaticModule(void) void HOTSW_LoadStaticModule(void)
{ {
#ifdef DEBUG_USED_CARD_SLOT_B_ #ifdef DEBUG_USED_CARD_SLOT_B_
// バナーリード // バナーリード
@ -348,13 +348,13 @@ void Card_LoadStaticModule(void)
/* ----------------------------------------------------------------- /* -----------------------------------------------------------------
* Card_SetBootSegmentBufferŠÖ<EFBFBD> * HOTSW_SetBootSegmentBufferŠÖ<EFBFBD>
* *
* Boot Segment * Boot Segment
* *
* *
* ----------------------------------------------------------------- */ * ----------------------------------------------------------------- */
void Card_SetBootSegmentBuffer(void* buf, u32 size) void HOTSW_SetBootSegmentBuffer(void* buf, u32 size)
{ {
SDK_ASSERT(size > BOOT_SEGMENT_SIZE); SDK_ASSERT(size > BOOT_SEGMENT_SIZE);
@ -370,13 +370,13 @@ void Card_SetBootSegmentBuffer(void* buf, u32 size)
} }
/* ----------------------------------------------------------------- /* -----------------------------------------------------------------
* Card_SetSecureSegmentBufferŠÖ<EFBFBD> * HOTSW_SetSecureSegmentBufferŠÖ<EFBFBD>
* *
* Secure Segment * Secure Segment
* *
* *
* ----------------------------------------------------------------- */ * ----------------------------------------------------------------- */
void Card_SetSecureSegmentBuffer(void* buf, u32 size) void HOTSW_SetSecureSegmentBuffer(void* buf, u32 size)
{ {
SDK_ASSERT(size > SECURE_SEGMENT_SIZE); SDK_ASSERT(size > SECURE_SEGMENT_SIZE);
@ -480,7 +480,7 @@ static void McThread(void *arg)
OS_SleepThread(NULL); OS_SleepThread(NULL);
// カードブート // カードブート
Card_Boot(); HOTSW_Boot();
} }
} }

View File

@ -11,7 +11,7 @@
in whole or in part, without the prior written consent of Nintendo. in whole or in part, without the prior written consent of Nintendo.
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <twl.h> #include <twl.h>
#include <sysmenu/card/common/blowfish.h> #include <sysmenu.h>
#define MAXKEYBYTES 56 /* 448 bits */ #define MAXKEYBYTES 56 /* 448 bits */
#define N 16 #define N 16

View File

@ -4,10 +4,7 @@
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <twl.h> #include <twl.h>
#include <sysmenu.h>
#include <sysmenu/card/common/blowfish.h>
#include <sysmenu/card/common/Card.h>
#include <sysmenu/card/common/dsCardType1.h>
// Define data -------------------------------------------------------------- // Define data --------------------------------------------------------------
#define PAGE_SIZE 512 #define PAGE_SIZE 512

View File

@ -4,10 +4,7 @@
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <twl.h> #include <twl.h>
#include <sysmenu.h>
#include <sysmenu/card/common/blowfish.h>
#include <sysmenu/card/common/Card.h>
#include <sysmenu/card/common/dsCardType2.h>
// Define Data -------------------------------------------------------------- // Define Data --------------------------------------------------------------
#define SECURE_SEGMENT_NUM 4 #define SECURE_SEGMENT_NUM 4

View File

@ -10,7 +10,7 @@
not be disclosed to third parties or copied or duplicated in any form, not be disclosed to third parties or copied or duplicated in any form,
in whole or in part, without the prior written consent of Nintendo. in whole or in part, without the prior written consent of Nintendo.
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <sysmenu/card/common/blowfish.h> #include <sysmenu.h>
const BLOWFISH_CTX GCDi_BlowfishInitTableDS = { const BLOWFISH_CTX GCDi_BlowfishInitTableDS = {

View File

@ -19,7 +19,7 @@
SUBDIRS = \ SUBDIRS = \
../../../libraries_sysmenu/sysmenu \ ../../../libraries_sysmenu/sysmenu \
../../../libraries_sysmenu/boot \ ../../../libraries_sysmenu/boot \
../../../libraries_sysmenu/card \ ../../../libraries_sysmenu/hotsw \
../../../components/hyena.TWL ../../../components/hyena.TWL
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------