mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
HW_ISD_RESERVED(NITROデバッガ用)経由でARM9へROMエミュレーション情報を渡す。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@470 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
906eefe9e6
commit
4b18b6b6c9
@ -38,7 +38,7 @@
|
||||
// WRAM-0 Master:ARM9, (16Kbytes), Address(7):0x03040000-0x03043fff, Address(9):0x03040000-0x03043fff
|
||||
// WRAM-1 Master:ARM9, (16Kbytes), Address(7):0x03044000-0x03047fff, Address(9):0x03044000-0x03047fff
|
||||
|
||||
u32 REBOOTi_WramRegDS[0x30/sizeof(u32)] =
|
||||
u32 HYENA_WramReg[0x30/sizeof(u32)] =
|
||||
{
|
||||
// ARM9
|
||||
|
||||
|
||||
@ -632,6 +632,8 @@ static void ReadRomEmulationData(void)
|
||||
}
|
||||
count+=4;
|
||||
}
|
||||
|
||||
MI_CpuCopyFast(s_cbData.romEmuBuf, (void*)HW_ISD_RESERVED, 32);
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------
|
||||
|
||||
@ -11,9 +11,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef SDK_ARM7
|
||||
#define SYSM_HOTSW_ENABLE_ROMEMU
|
||||
#endif // SDK_ARM7
|
||||
|
||||
// Function prototype -------------------------------------------------------
|
||||
// 活栓挿抜処理の初期化
|
||||
@ -32,7 +30,14 @@ void HOTSW_SetBootSegmentBuffer(void* buf, u32 size);
|
||||
void HOTSW_SetSecureSegmentBuffer(void* buf, u32 size);
|
||||
|
||||
// Romエミュレーション情報を格納しているバッファのポインタを返す
|
||||
#ifdef SDK_ARM7
|
||||
void* HOTSW_GetRomEmulationBuffer(void);
|
||||
#else // SDK_ARM9
|
||||
SDK_INLINE void* HOTSW_GetRomEmulationBuffer(void)
|
||||
{
|
||||
return (void*)HW_ISD_RESERVED;
|
||||
}
|
||||
#endif // SDK_ARM9
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user