Minor stuff

This commit is contained in:
Aurora 2016-10-23 04:03:41 +02:00
parent 67b00ec28d
commit 2089959d1b
2 changed files with 5 additions and 12 deletions

View File

@ -175,8 +175,7 @@ static inline u32 patchMpu(u8 *pos, u32 size)
else else
{ {
off[1] = 0x0036; off[1] = 0x0036;
off[0xC] = 0x0603; off[0xC] = off[0x12] = 0x0603;
off[0x12] = 0x0603;
ret = 0; ret = 0;
} }

View File

@ -623,12 +623,8 @@ u32 patchTwlFlashcartChecks(u8 *pos, u32 size, u32 firmVersion)
{ {
u16 *off = (u16 *)(temp + 3); u16 *off = (u16 *)(temp + 3);
off[0] = 0x2001; //mov r0, #1 off[0] = off[6] = off[0xC] = 0x2001; //mov r0, #1
off[1] = 0; //nop off[1] = off[7] = off[0xD] = 0; //nop
off[6] = 0x2001; //mov r0, #1
off[7] = 0; //nop
off[0xC] = 0x2001; //mov r0, #1
off[0xD] = 0; //nop
ret = 0; ret = 0;
} }
@ -646,10 +642,8 @@ u32 patchOldTwlFlashcartChecks(u8 *pos, u32 size)
if(off == NULL) ret = 1; if(off == NULL) ret = 1;
else else
{ {
off[0] = 0x2001; //mov r0, #1 off[0] = off[6] = 0x2001; //mov r0, #1
off[1] = 0; //nop off[1] = off[7] = 0; //nop
off[6] = 0x2001; //mov r0, #1
off[7] = 0; //nop
ret = 0; ret = 0;
} }