Minor stuff

This commit is contained in:
Aurora 2016-10-23 03:47:10 +02:00
parent 4f53b3ce35
commit 127ae6b945

View File

@ -57,7 +57,7 @@ sd_notmounted equ 0xC8804465 ; Error code returned when SD is not mounted
; Copy the low TID (in UTF-16) of the wanted firm to the 5th byte of the payload ; Copy the low TID (in UTF-16) of the wanted firm to the 5th byte of the payload
ldr r0, =payload_addr + 4 ldr r0, =payload_addr + 4
add r1, r8, 0x1A add r1, r8, #0x1A
mov r2, #0x10 mov r2, #0x10
bl memcpy16 bl memcpy16
@ -123,7 +123,8 @@ nand_mount: .dcw "nand"
cmp r1, #0 cmp r1, #0
bne outer_loop bne outer_loop
mcr p15, 0, r1, c7, c10, 4 ; drain write buffer ; Drain write buffer
mcr p15, 0, r1, c7, c10, 4
; Flush instruction cache ; Flush instruction cache
mcr p15, 0, r1, c7, c5, 0 mcr p15, 0, r1, c7, c5, 0