Fix patchKernel9Panic() pattern (fix crashes on certain O3DS FIRMs)
This commit is contained in:
parent
66ffc78f60
commit
942a371b6a
@ -274,9 +274,9 @@ void patchSvcBreak11(u8 *pos, u32 *arm11SvcTable)
|
|||||||
|
|
||||||
void patchKernel9Panic(u8 *pos, u32 size)
|
void patchKernel9Panic(u8 *pos, u32 size)
|
||||||
{
|
{
|
||||||
const u8 pattern[] = {0xDF, 0xFF, 0xEA, 0x04};
|
const u8 pattern[] = {0xFF, 0xEA, 0x04, 0xD0};
|
||||||
|
|
||||||
u32 *off = (u32 *)(memsearch(pos, pattern, size, sizeof(pattern)) - 0x11);
|
u32 *off = (u32 *)(memsearch(pos, pattern, size, sizeof(pattern)) - 0x12);
|
||||||
*off = 0xE12FFF7E;
|
*off = 0xE12FFF7E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user