Update reboot.s
This commit is contained in:
parent
3fd783cd01
commit
080219f88d
@ -38,7 +38,7 @@ sd_notmounted equ 0xC8804465 ; Error code returned when SD is not mounted
|
|||||||
beq read_payload
|
beq read_payload
|
||||||
ldr r2, =sd_notmounted
|
ldr r2, =sd_notmounted
|
||||||
cmp r0, r2
|
cmp r0, r2
|
||||||
bne svcBreak
|
bne panic
|
||||||
adr r0, fname
|
adr r0, fname
|
||||||
adr r1, nand_mount
|
adr r1, nand_mount
|
||||||
mov r2, #8
|
mov r2, #8
|
||||||
@ -86,8 +86,10 @@ sd_notmounted equ 0xC8804465 ; Error code returned when SD is not mounted
|
|||||||
blo copy_loop
|
blo copy_loop
|
||||||
bx lr
|
bx lr
|
||||||
|
|
||||||
svcBreak:
|
panic:
|
||||||
swi 0x3C
|
mov r1, r0 ; unused register
|
||||||
|
mov r0, #0
|
||||||
|
swi 0x3C ; svcBreak(USERBREAK_PANIC)
|
||||||
b die
|
b die
|
||||||
|
|
||||||
bytes_read: .word 0
|
bytes_read: .word 0
|
||||||
@ -131,4 +133,4 @@ nand_mount: .dcw "nand"
|
|||||||
bx r0
|
bx r0
|
||||||
|
|
||||||
.pool
|
.pool
|
||||||
.close
|
.close
|
||||||
|
Reference in New Issue
Block a user