exo/bpc.mitm: Add support for proper shutdown.

This commit is contained in:
Michael Scire
2019-02-21 07:05:58 -08:00
parent 0288986e14
commit a0e06cf7b2
11 changed files with 727 additions and 7 deletions

View File

@@ -18,11 +18,16 @@
.align 4
.global _start
_start:
b crt0
adr r0, reboot_type
cmp r0, #0x0
beq do_shutdown
b jump_to_reboot_payload
reboot_type:
.word 0x00000001
.global crt0
.type crt0, %function
crt0:
.global jump_to_reboot_payload
.type jump_to_reboot_payload, %function
jump_to_reboot_payload:
@ clear all registers
ldr r0, =0x52425430 @ RBT0
mov r1, #0x0