mirror of
https://wiilab.wiimart.org/wiimart/WiiMart-Patcher
synced 2025-09-05 21:11:13 +02:00
Remap DBAT7 to cover full IOS range
This commit is contained in:
parent
3338ff8f02
commit
060331284e
@ -119,7 +119,7 @@ var OverwriteIOSPatch = PatchSet{
|
|||||||
//////////////
|
//////////////
|
||||||
// We want to write to IOSC_VerifyPublicKeySign at 0x13a73ad4.
|
// We want to write to IOSC_VerifyPublicKeySign at 0x13a73ad4.
|
||||||
// For us, this is mapped to 0x92a73ad4.
|
// For us, this is mapped to 0x92a73ad4.
|
||||||
0x92, 0xa7, 0x3a, 0xd4,
|
0x93, 0xa7, 0x3a, 0xd4,
|
||||||
// 0x20004770 is equivalent in ARM THUMB to:
|
// 0x20004770 is equivalent in ARM THUMB to:
|
||||||
// mov r0, #0x0
|
// mov r0, #0x0
|
||||||
// bx lr
|
// bx lr
|
||||||
@ -173,7 +173,7 @@ var OverwriteIOSPatch = PatchSet{
|
|||||||
|
|
||||||
// This is additionally not a patch!
|
// This is additionally not a patch!
|
||||||
// We use this to store our ideal MEM2 mapping.
|
// We use this to store our ideal MEM2 mapping.
|
||||||
0x90, 0x00, 0x1f, 0xff,
|
0x93, 0x00, 0x01, 0xff,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Patch{
|
Patch{
|
||||||
@ -194,6 +194,11 @@ var OverwriteIOSPatch = PatchSet{
|
|||||||
// Apply lower half
|
// Apply lower half
|
||||||
STH(R10, 0x0, R9),
|
STH(R10, 0x0, R9),
|
||||||
|
|
||||||
|
// Load a better mapping for upper MEM2.
|
||||||
|
LWZ(R9, 0x30, R8),
|
||||||
|
// mtspr DBAT7U, r9
|
||||||
|
Instruction{0x7d, 0x3e, 0x8b, 0xa6},
|
||||||
|
|
||||||
// Load address/value pair for IOSC_VerifyPublicKeySign
|
// Load address/value pair for IOSC_VerifyPublicKeySign
|
||||||
LWZ(R9, 0x8, R8),
|
LWZ(R9, 0x8, R8),
|
||||||
LWZ(R10, 0xc, R8),
|
LWZ(R10, 0xc, R8),
|
||||||
@ -226,11 +231,6 @@ var OverwriteIOSPatch = PatchSet{
|
|||||||
// bne (last blr)
|
// bne (last blr)
|
||||||
Instruction{0x40, 0x82, 0x00, 0x30},
|
Instruction{0x40, 0x82, 0x00, 0x30},
|
||||||
|
|
||||||
// Load a better mapping for upper MEM2.
|
|
||||||
LWZ(R9, 0x30, R8),
|
|
||||||
// mtspr DBAT7U, r9
|
|
||||||
Instruction{0x7d, 0x3e, 0x8b, 0xa6},
|
|
||||||
|
|
||||||
// Apply ES_AddTicket
|
// Apply ES_AddTicket
|
||||||
LWZ(R9, 0x18, R8),
|
LWZ(R9, 0x18, R8),
|
||||||
LWZ(R10, 0x1c, R8),
|
LWZ(R10, 0x1c, R8),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user