Add kernel_syscall_0x81 to instant_patches

This commit is contained in:
GaryOderNichts 2021-04-04 04:52:15 +02:00 committed by Maschell
parent bd3d993a7f
commit 0de8f77c71
3 changed files with 5 additions and 1 deletions

View File

@ -45,6 +45,8 @@ void instant_patches_setup(void) {
// apply IOS ELF launch hook
*(volatile u32 *) 0x0812A120 = ARM_BL(0x0812A120, kernel_launch_ios);
*(volatile u32 *) 0x0812CD2C = ARM_B(0x0812CD2C, kernel_syscall_0x81);
// patch FSA raw access
*(volatile u32 *) 0x1070FAE8 = 0x05812070;
*(volatile u32 *) 0x1070FAEC = 0xEAFFFFF9;

View File

@ -52,7 +52,7 @@ static const u32 KERNEL_MCP_IOMAPPINGS_STRUCT[] =
0x00000001 // pid (MCP)
};
static int kernel_syscall_0x81(u32 command, u32 arg1, u32 arg2, u32 arg3) {
int kernel_syscall_0x81(u32 command, u32 arg1, u32 arg2, u32 arg3) {
switch (command) {
case KERNEL_READ32: {
return *(volatile u32 *) arg1;

View File

@ -26,6 +26,8 @@
int kernel_init_otp_buffer(u32 sd_sector, int tagValid);
int kernel_syscall_0x81(u32 command, u32 arg1, u32 arg2, u32 arg3);
void kernel_launch_ios(u32 launch_address, u32 L, u32 C, u32 H);
void kernel_run_patches(u32 ios_elf_start);