AArch64 EL2 hypervisor for QEMU virt that boots at EL2
1.section .text.entry, "ax"
2.global _start
3.type _start, %function
4_start:
5 mov x19, x0
6 mrs x0, mpidr_el1
7 and x0, x0, #0xff
8 cbz x0, 1f
90: wfe
10 b 0b
11
121: ldr x0, =__boot_stack_top
13 mov sp, x0
14 ldr x0, =__bss_start
15 ldr x1, =__bss_end
162: cmp x0, x1
17 b.hs 3f
18 str xzr, [x0], #8
19 b 2b
203: mov x0, x19
21 bl hv_main
224: wfe
23 b 4b
24
25.section .bss.stack, "aw", %nobits
26.align 12
27__boot_stack:
28 .skip 0x10000
29__boot_stack_top: