From 1aea6f34741513757c57e7827cf10d5dce375e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B3pez=20Guimaraes?= Date: Wed, 10 Jul 2024 18:47:30 +0100 Subject: [PATCH] ios_kernel: Patch DLP requirement for missing archive --- source/ios_kernel/source/instant_patches.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/ios_kernel/source/instant_patches.c b/source/ios_kernel/source/instant_patches.c index 3781c91..972dd90 100644 --- a/source/ios_kernel/source/instant_patches.c +++ b/source/ios_kernel/source/instant_patches.c @@ -49,6 +49,7 @@ typedef struct { #define mcp_data_phys(addr) ((u32) (addr) -0x05074000 + 0x08234000) #define fsa_phys(addr) ((u32) (addr)) #define kernel_phys(addr) ((u32) (addr)) +#define net_phys(addr) ((u32) (addr)) #define acp_text_phys(addr) ((u32) (addr) -0xE0000000 + 0x12900000) #define nimboss_text_phys(addr) ((u32) (addr) -0xe2000000 + 0x12EC0000) #define nimboss_rodata_phys(addr) ((u32) (addr) -0xe2280000 + 0x13140000) @@ -173,6 +174,11 @@ void instant_patches_setup(void) { // force check USB storage on load *(volatile u32 *) acp_text_phys(0xE012202C) = 0x00000001; // find USB flag + // Patch DLP to ignore error for missing title archive + *(volatile u32 *) net_phys(0x1239E108) = 0xEA000000; // mov r0, r0 + *(volatile u32 *) net_phys(0x1239E10C) = 0xEA000000; // mov r0, r0 + *(volatile u32 *) net_phys(0x1239E110) = 0xEA000000; // mov r0, r0 + // Patch FS to syslog everything *(volatile u32 *) fsa_phys(0x107F5720) = ARM_B(0x107F5720, 0x107F0C84);