interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / disk / qemu / start.S

19 lines · 505 bytes Raw Blame History
1/* Bare-metal entry for the QEMU virt NVMe payload. QEMU -kernel enters at
2 * EL1 (no EL3 firmware), MMU and caches off. Set the stack, zero .bss, call
3 * payload_main, then PSCI SYSTEM_OFF through HVC (QEMU's built-in PSCI). */
4 .section .text.start, "ax"
5 .global _start
6_start:
7 ldr x0, =__stack_top
8 mov sp, x0
9 ldr x0, =__bss_start
10 ldr x1, =__bss_end
111: cmp x0, x1
12 b.hs 2f
13 str xzr, [x0], #8
14 b 1b
152: bl payload_main
16 ldr x0, =0x84000008
17 hvc #0
183: wfi
19 b 3b