Atmosphere/exosphere/bpmpfw/src/start.s

25 lines
385 B
ArmAsm
Raw Normal View History

2018-02-23 12:13:18 +00:00
.section .text.start
.align 4
.global _start
_start:
b crt0
.global _reboot
b reboot
.global crt0
.type crt0, %function
crt0:
@ setup to call lp0_entry_main
2018-02-23 12:56:23 +00:00
msr cpsr_cxsf, #0xD3
2018-02-23 12:13:18 +00:00
ldr sp, =__stack_top__
ldr lr, =reboot
2018-02-23 12:56:23 +00:00
b lp0_entry_main
2018-02-23 12:13:18 +00:00
.global spinlock_wait
.type spinlock_wait, %function
spinlock_wait:
2018-02-23 12:56:23 +00:00
subs r0, r0, #1
2018-02-23 12:13:18 +00:00
bgt spinlock_wait
2018-02-23 12:56:23 +00:00
bx lr