aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
GitHub aien-dev/aienux#90 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/aienux/patches/724b48b8cf780f34.bundle -o 724b48b8cf780f34.bundle git fetch 724b48b8cf780f34.bundle refs/pull/90/head
Provenance
github-import 1
aien-dev/aienux
90
e55f4f419fecd319e7ce8ed622847c2ae15d8f82
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":90,"url":"https://github.com/aien-dev/aienux/pull/90","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:46Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/crates/aienos-boot/src/handoff.rs b/crates/aienos-boot/src/handoff.rs index 8e1601e8..c2d4939e 100644 --- a/crates/aienos-boot/src/handoff.rs +++ b/crates/aienos-boot/src/handoff.rs @@ -236,7 +236,19 @@ fn enter_kernel_mmu( ) }; if !entered { - // Not at EL2: the kernel must not continue on firmware's translation. + // Fail closed with evidence: the kernel must not continue on + // firmware's translation, and the reason must survive the halt. + let mut halt_report = Report::new(); + header(&mut halt_report, "halt"); + write_index_line(&mut halt_report); + let el = aienos_kernel::arch::aarch64::current_el(); + let _ = writeln!( + halt_report, + "el1_switch: refused (current EL{el}, expected EL2)" + ); + let _ = writeln!(halt_report, "boot: halted before kernel entry"); + let _ = send_to_console(halt_report.as_str()); + let _ = save_report_var(halt_report.as_bytes()); aienos_kernel::arch::aarch64::halt(); } fatal::install_exception_vectors();