Skip to content

Commit

Permalink
Fix patchKernel9Panic on 11.8 NATIVE_FIRM (pattern tested down to 3.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraWright committed Jul 31, 2018
1 parent dd6e071 commit 89cc6ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/patches.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,13 @@ u32 patchSvcBreak9(u8 *pos, u32 size, u32 kernel9Address)

u32 patchKernel9Panic(u8 *pos, u32 size)
{
static const u8 pattern[] = {0xFF, 0xEA, 0x04, 0xD0};
static const u8 pattern[] = {0x00, 0x20, 0x92, 0x15};

u8 *temp = memsearch(pos, pattern, size, sizeof(pattern));

if(temp == NULL) return 1;

u32 *off = (u32 *)(temp - 0x12);
u32 *off = (u32 *)(temp - 0x34);
*off = 0xE12FFF7E;

return 0;
Expand Down

0 comments on commit 89cc6ed

Please sign in to comment.