Skip to content

Commit

Permalink
ios_kernel: Patch DLP requirement for missing archive
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniElectra authored and Maschell committed Jul 10, 2024
1 parent 1a9acbd commit 1aea6f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/ios_kernel/source/instant_patches.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 1aea6f3

Please sign in to comment.