ableos/ableos/src/arch/aarch64/boot.s

16 lines
251 B
ArmAsm
Raw Normal View History

2021-11-16 06:09:27 +00:00
.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