Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/crates/aienos-artifact-tool/fixtures/p2_7/p27kread/probe.S # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / crates / aienos-artifact-tool / fixtures / p2_7 / p27kread / probe.S` 19 lines ยท 889 bytes Raw Blame History 1 // PI5-7 cut 3 kernel-read probe: AArch64 EL0, position independent, no relocations. It loads one 64-bit word 2 // from a kernel address (KADDR: by default 0x210000, the kernel's own translation-table root on the Raspberry Pi 5 3 // image, see the "mmu_switch: ... aienos_root=" line of every Pi run). The kernel maps its memory EL1-only in the 4 // task's table, so the load must take a permission fault from EL0 (ESR_EL1.EC 0x24, WnR 0, FAR = KADDR) and the 5 // kernel must terminate and reclaim the task and keep running. Reaching SYS_EXIT(0x57) would mean the load 6 // succeeded, i.e. kernel memory is readable from EL0. 7 // Assemble with: as --defsym KADDR=
(assemble.sh does). 8 .ifndef KADDR 9 .set KADDR, 0x210000 10 .endif 11 .text 12 .global _start 13 _start: 14 ldr x9, =KADDR 15 ldr x0, [x9] 16 mov x0, #0x57 17 mov x8, #2 18 svc #0 19 1: b 1b