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 / crates / aienos-artifact-tool / fixtures / p2_7 / p27priv / probe.S

13 lines · 600 bytes Raw Blame History
1// PI5-7 cut 3 privileged-instruction probe: AArch64 EL0, position independent, no relocations. It reads
2// SCTLR_EL1, a system register that EL0 may not access (Arm ARM DDI 0487: MRS of an EL1 register from EL0 is
3// UNDEFINED, taken to EL1 with ESR_EL1.EC 0x00 unknown reason, or EC 0x18 when the access is trapped). The task
4// is terminated and reclaimed and the kernel keeps running. Reaching SYS_EXIT(0x57) would mean EL0 may read
5// kernel control registers.
6 .text
7 .global _start
8_start:
9 mrs x0, sctlr_el1
10 mov x0, #0x57
11 mov x8, #2
12 svc #0
131: b 1b