Notes index: The machine
What the hardware is and how the kernel meets it: read these before any kernel code.
Part of the notes index, which says how to add a line.
- Registers: the CPU's whole state; the most fundamental note.
- Harts and PEs: precise words for one instruction stream, not "core".
- aarch64: the instruction set, privilege levels, and our target triple.
- Reading aarch64 assembly: five rules for decoding assembly; start here.
- The stack,
sp, andx30(nifeos/nife:notes/stack.md): how the stack works, and our stack incidents. - Stack high-water: measuring how deep each kernel stack actually goes.
- Exceptions: faults, interrupts and system calls as one aarch64 mechanism.
- Interrupts: the GIC and the timer: the GIC, the timer, and interrupts as messages.
- The device tree: the machine's self-description, and how we parse it.
- ISA discovery: reading each CPU's features and core list at boot.
- Machine discovery: the shared readers (
nifeos/nife:notes/machine-discovery.md): core lists, interrupt ids, PLIC contexts, the GIC, the screen token, PVH and ACPI. Name provisional. - The UART: the serial port, and our PL011 driver line by line.
- The PMU, and the two clocks in a core: the cycle counter versus the virtualization-proof generic timer.
- QEMU: the emulator we develop on, and its flags.
- Semihosting: how the kernel reports a test exit status to QEMU.
- Call-frame information in hand-written assembly: unwind tables for the hand-written
.sfiles. Name provisional.