diff --git a/source/firm.c b/source/firm.c index 1512ead..66bcee0 100755 --- a/source/firm.c +++ b/source/firm.c @@ -177,7 +177,6 @@ u32 patchNativeFirm(u32 firmVersion, FirmwareSource nandType, u32 emuHeader, boo { //Stub svc 0x59 ret += stubSvcRestrictGpuDma(arm11Section1, arm11SvcTable, baseK11VA); - ret += stubTimerQueueSanityCheck(arm11Section1, firm->section[1].size); } ret += implementSvcGetCFWInfo(arm11Section1, arm11SvcTable, baseK11VA, &freeK11Space, isSafeMode); diff --git a/source/patches.c b/source/patches.c index 3dfa6d9..def865d 100644 --- a/source/patches.c +++ b/source/patches.c @@ -294,16 +294,6 @@ u32 stubSvcRestrictGpuDma(u8 *pos, u32 *arm11SvcTable, u32 baseK11VA) return 0; } -u32 stubTimerQueueSanityCheck(u8 *pos, u32 size) -{ - const u8 pattern[] = {0xF0, 0x41, 0x2D, 0xE9, 0x00, 0x60, 0xA0, 0xE1, 0x00, 0x70, - 0xA0, 0xE3, 0x20, 0x00, 0x86, 0xE2}; - - u32 *off = (u32 *)memsearch(pos, pattern, size, sizeof(pattern)); - if(off != NULL) *off = 0xE12FFF1E; // Do not error, since we could be using an external FIRM, ... - return 0; -} - u32 implementSvcGetCFWInfo(u8 *pos, u32 *arm11SvcTable, u32 baseK11VA, u8 **freeK11Space, bool isSafeMode) { if(*(u32 *)(*freeK11Space + svcGetCFWInfo_bin_size - 4) != 0xFFFFFFFF) return 1; diff --git a/source/patches.h b/source/patches.h index 4672d13..a4f0382 100644 --- a/source/patches.h +++ b/source/patches.h @@ -47,7 +47,6 @@ u32 patchNandNcchEncryptionCheck(u8 *pos, u32 size); u32 patchCheckForDevCommonKey(u8 *pos, u32 size); u32 reimplementSvcBackdoor(u8 *pos, u32 *arm11SvcTable, u32 baseK11VA, u8 **freeK11Space); u32 stubSvcRestrictGpuDma(u8 *pos, u32 *arm11SvcTable, u32 baseK11VA); -u32 stubTimerQueueSanityCheck(u8 *pos, u32 size); u32 implementSvcGetCFWInfo(u8 *pos, u32 *arm11SvcTable, u32 baseK11VA, u8 **freeK11Space, bool isSafeMode); u32 patchArm9ExceptionHandlersInstall(u8 *pos, u32 size); u32 getInfoForArm11ExceptionHandlers(u8 *pos, u32 size, u32 *codeSetOffset);