From e091da72ebd6277035c9e909ac7c64213ef7528b Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 1 Jan 2022 14:15:46 +0100 Subject: [PATCH] Fix booting the homebrew launcher channel after running this setupmodule --- source/kernel_patches.s | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/kernel_patches.s b/source/kernel_patches.s index 90187cb..7611c99 100644 --- a/source/kernel_patches.s +++ b/source/kernel_patches.s @@ -147,6 +147,20 @@ KernelPatches: eieio isync + # Patch syscall 0x65 to return 0xb00b0000 + lis r3,-0x18 + ori r3,r3,0x5204 + lis r4,0x3c60 + ori r4,r4,0xb00b + lwz r3,0x0(r3) + stw r4,0x0(r3) + rlwinm r3,r3,0x0,0x0,0x1a + dcbf 0,r3 + icbi 0,r3 + sync 0x0 + eieio + isync + # write "nop" to some positions lis r4, 0x6000 # nop on IBATU 4 and DBAT 5 set/reset