From 71f49180c3a06a722b669895974ca87b478c01e2 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Tue, 11 Apr 2017 15:31:48 +0200 Subject: [PATCH] Fix firmlaunch patch (it was broken on 11.4) --- patches/reboot.s | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/patches/reboot.s b/patches/reboot.s index 1a63ada..3c51847 100644 --- a/patches/reboot.s +++ b/patches/reboot.s @@ -9,11 +9,12 @@ payload_maxsize equ 0x100000 ; Maximum size for the payload (maximum that CakeB .arm ; Interesting registers and locations to keep in mind, set just before this code is ran: ; - r1: FIRM path in exefs. - ; - r7: pointer to file object + ; - r7 (or r8): pointer to file object ; - *r7: vtable ; - *(vtable + 0x28): fread function ; - *(r7 + 8): file handle + sub r7, r0, #8 mov r8, r1 pxi_wait_recv: @@ -105,6 +106,8 @@ nand_mount: .dcw "nand" .align 4 kernelcode_start: + ldr sp, =0x080FF000 + ; Disable MPU ldr r0, =0x42078 ; alt vector select, enable itcm mcr p15, 0, r0, c1, c0, 0 @@ -136,4 +139,5 @@ nand_mount: .dcw "nand" bx r0 .pool -.close \ No newline at end of file +.close +