aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / crates / aienos-artifact-tool / fixtures / p2_7 / p27priv / probe.S
| 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 |
| 13 | 1: b 1b |