Milo is a freestanding C++20 microkernel built for AArch64 (cortex-a53 / cortex-a57) on QEMU virt, pairing an architecture-agnostic Hardware Abstraction Layer (kernel/hal/) with a Linux AArch64 (LP64) syscall/ABI compatibility layer. It executes hardware-independent kernel subsystems natively on the host under snitch with ASan/UBSan and coverage instrumentation while also booting full EL0 user-space binaries and shells on QEMU.
| Guide | Topics Covered |
|---|---|
| 01 — Architecture Overview | Microkernel privilege boundaries (EL1 vs. EL0), TCB scope, system block diagram, and directory-to-subsystem mapping. |
| 02 — Boot and Initialization | Step-by-step AArch64 boot flow, kmain bring-up sequence, initial EL0 user-space execution, and boot sequence diagram. |
| 03 — Memory Management | Physical/virtual address ranges, PageFrameAllocator, KernelHeap slab/compound allocator, and AddressSpace paging, CoW, and PageCache. |
| 04 — Tasks and Scheduling | Process states, Runqueue and WaitQueue mechanics, preemptive timer scheduling, and EL1/EL0 context switching. |
| 05 — IPC and Syscalls | AArch64 svc #0 ABI, full syscall reference table (84 syscalls), Pipe ring buffers, and AF_UNIX stream/datagram sockets. |
| 06 — Hardware and Interrupts | Exception vectors, GICv2 interrupt routing, ARM Generic Timer, PL011 UART, fw_cfg/ramfb, and VirtIO-MMIO drivers. |
| 07 — Contributing and Debugging | QEMU + GDB debugging workflow, panic/fault diagnostics, commit/license rules, and checklists for adding syscalls, drivers, or host tests. |
| 08 — Testing and CI | Host snitch ASan/UBSan test harness, gcovr coverage, quality gates, on-target milo> tests, and GitHub Actions CI workflows. |
| 09 — Engineering Patterns & Best Practices | Freestanding C++20 patterns, RAII/Rule of Five, HAL & DDK isolation, dual-target testing, forensic logging, and quality gates. |
snitch) — Architectural decision record for the snitch host test runner, HAL mocks, and QEMU test coexistence.make -j"$(nproc)" all # Build build/kernel.elf, build/kernel.bin, and initrds/busybox.cpio
make -j"$(nproc)" test-host # Run ASan/UBSan snitch host tests and gcovr reports
make -j"$(nproc)" quality # Run format-check, license-check, lint-report, and test-host
make run # Build disk.img if needed and boot kernel.bin on QEMU virt (Ctrl+A then X to exit)
For full toolchain prerequisites, QEMU/GDB debugging workflows, and contribution rules, see 07 — Contributing and Debugging and the Build Reference.