From 080219f88d29fbed28ffef28ebf6cd172d51b5d7 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sat, 22 Oct 2016 23:38:26 +0200 Subject: [PATCH] Update reboot.s --- patches/reboot.s | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/patches/reboot.s b/patches/reboot.s index 207215a..7bd4173 100644 --- a/patches/reboot.s +++ b/patches/reboot.s @@ -38,7 +38,7 @@ sd_notmounted equ 0xC8804465 ; Error code returned when SD is not mounted beq read_payload ldr r2, =sd_notmounted cmp r0, r2 - bne svcBreak + bne panic adr r0, fname adr r1, nand_mount mov r2, #8 @@ -86,8 +86,10 @@ sd_notmounted equ 0xC8804465 ; Error code returned when SD is not mounted blo copy_loop bx lr - svcBreak: - swi 0x3C + panic: + mov r1, r0 ; unused register + mov r0, #0 + swi 0x3C ; svcBreak(USERBREAK_PANIC) b die bytes_read: .word 0 @@ -131,4 +133,4 @@ nand_mount: .dcw "nand" bx r0 .pool -.close \ No newline at end of file +.close