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

GitHub aien-dev/aienux#44 (code only)

closed derived 04a16a10024257ed #44

Imported from GitHub aien-dev/aienux#44 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base d48420f48063a2fec0c310a3b93d8763b5cc1035 · Head a7ccba1c4fad1735d69cb6ccb545f8f308a7085f

Apply it

git checkout -b patch-04a16a10024257ed d48420f48063a2fec0c310a3b93d8763b5cc1035
curl -fsSL https://interplane.io/drakestapleton/aienux/patches/04a16a10024257ed.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aienux
44
a7ccba1c4fad1735d69cb6ccb545f8f308a7085f
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":44,"url":"https://github.com/aien-dev/aienux/pull/44","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:25Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..20b3a1d6
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+
+on:
+  push:
+    branches: [main]
+  pull_request:
+    branches: [main]
+
+jobs:
+  verify:
+    name: Verify and QEMU Boot Test
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+
+      - name: Install Rust toolchain
+        uses: dtolnay/rust-toolchain@stable
+        with:
+          targets: aarch64-unknown-none, aarch64-unknown-uefi
+          components: clippy, rustfmt
+
+      - name: Install QEMU and AAVMF firmware
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y qemu-system-arm qemu-efi-aarch64
+
+      - name: Run verification harness and QEMU boot test
+        run: bash scripts/verify_all.sh
diff --git a/crates/aienos-kernel/src/fatal.rs b/crates/aienos-kernel/src/fatal.rs
index 0f4471b3..d6b92e27 100644
--- a/crates/aienos-kernel/src/fatal.rs
+++ b/crates/aienos-kernel/src/fatal.rs
@@ -84,12 +84,14 @@ impl fmt::Display for FaultInfo {
 /// Called for a fault once vectors are installed. Must not return.
 pub type FaultHook = fn(&FaultInfo) -> !;
 
+#[cfg_attr(not(target_arch = "aarch64"), allow(dead_code))]
 static HOOK: AtomicUsize = AtomicUsize::new(0);
 
 pub fn set_fault_hook(hook: FaultHook) {
     HOOK.store(hook as usize, Ordering::SeqCst);
 }
 
+#[cfg_attr(not(target_arch = "aarch64"), allow(dead_code))]
 fn call_hook(info: &FaultInfo) -> ! {
     let raw = HOOK.load(Ordering::SeqCst);
     if raw != 0 {
diff --git a/scripts/verify_all.sh b/scripts/verify_all.sh
index 9c3d27c9..5543da81 100755
--- a/scripts/verify_all.sh
+++ b/scripts/verify_all.sh
@@ -47,6 +47,15 @@ cargo run --quiet --release -p aienos-evidence -- verify-efi target/aarch64-unkn
 cargo build --release -p aienos-boot --target aarch64-unknown-uefi --features handoff --bin aienos-handoff
 cargo run --quiet --release -p aienos-evidence -- verify-efi target/aarch64-unknown-uefi/release/aienos-handoff.efi
 
+# Step 6: QEMU AArch64 UEFI Boot Verification (Emulator Boot Test)
+echo ""
+echo "--- [QEMU AArch64 UEFI Boot Verification] ---"
+if command -v qemu-system-aarch64 >/dev/null && [[ -r "${AAVMF_CODE:-/usr/share/AAVMF/AAVMF_CODE.no-secboot.fd}" ]]; then
+    ./scripts/qemu_boot_test.sh
+else
+    echo "SKIPPED: qemu-system-aarch64 or AAVMF firmware not present on host."
+fi
+
 echo ""
 echo "============================================================"
 echo "HOST VERIFICATIONS PASSED."