mirror of
https://github.com/wiiu-env/MochaPayload.git
synced 2024-11-22 07:59:16 +01:00
Add kernel_syscall_0x81 to instant_patches
This commit is contained in:
parent
bd3d993a7f
commit
0de8f77c71
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user