Fix firmlaunch patch (it was broken on 11.4)

This commit is contained in:
TuxSH 2017-04-11 15:31:48 +02:00
parent 4a042241a8
commit 71f49180c3

View File

@ -9,11 +9,12 @@ payload_maxsize equ 0x100000 ; Maximum size for the payload (maximum that CakeB
.arm .arm
; Interesting registers and locations to keep in mind, set just before this code is ran: ; Interesting registers and locations to keep in mind, set just before this code is ran:
; - r1: FIRM path in exefs. ; - r1: FIRM path in exefs.
; - r7: pointer to file object ; - r7 (or r8): pointer to file object
; - *r7: vtable ; - *r7: vtable
; - *(vtable + 0x28): fread function ; - *(vtable + 0x28): fread function
; - *(r7 + 8): file handle ; - *(r7 + 8): file handle
sub r7, r0, #8
mov r8, r1 mov r8, r1
pxi_wait_recv: pxi_wait_recv:
@ -105,6 +106,8 @@ nand_mount: .dcw "nand"
.align 4 .align 4
kernelcode_start: kernelcode_start:
ldr sp, =0x080FF000
; Disable MPU ; Disable MPU
ldr r0, =0x42078 ; alt vector select, enable itcm ldr r0, =0x42078 ; alt vector select, enable itcm
mcr p15, 0, r0, c1, c0, 0 mcr p15, 0, r0, c1, c0, 0
@ -137,3 +140,4 @@ nand_mount: .dcw "nand"
.pool .pool
.close .close