1
0
Fork 0
forked from AbleOS/ableos
ableOS_v1Change/ableos/src/arch/aarch64/boot.s
2021-11-16 00:09:27 -06:00

16 lines
251 B
ArmAsm

.globl _start
.extern LD_STACK_PTR
.section ".text.boot"
_start:
ldr x30, =LD_STACK_PTR
mov sp, x30
bl not_main
.equ PSCI_SYSTEM_OFF, 0x84000008
.globl system_off
system_off:
ldr x0, =PSCI_SYSTEM_OFF
hvc #0