How luci-code-2014/luis works
LuiS is a small x86_64 operating system targeting BIOS/Legacy boot from MBR. Its apparent workflow is firmware boot, bootloader stages, kernel entry, then kernel initialization and VGA text output; the README confirms the boot target, but the boot and assembly sources were not sampled, so those transitions are shown as unverified. The sampled kernel initializes the IDT and prints to VGA; the keyboard callback can print translated characters, although IDT and keyboard activation are commented out in the sampled initialization. Connections involving unsampled assembly are therefore omitted or dashed.
Main entry points: kernel.c VGA text output · stage1.asm Stage 1 · stage2.asm Stage 2 · kernel_entry.asm Kernel entry
Components 9
Kernel
- Kernel entry
kernel/entry/kernel_entry.asm - Kernel main
kernel/kernel.c - IDT setup
kernel/idt.c - Interrupt handlers
kernel/arch/interrupts.asm
Input and Output
- Keyboard input
kernel/idt.c - VGA text output
kernel/kernel.c
Other components
- BIOS firmware
Connections 8
- BIOS firmware → Stage 1: starts boot
- Stage 1 → Stage 2: loads stage
- Stage 2 → Kernel entry: loads kernel
- Kernel entry → Kernel main: enters kernel
- Kernel main → IDT setup: calls init
kernel/kernel.c - Kernel main → VGA text output: prints text
kernel/kernel.c - VGA text output → VGA text output: writes characters
kernel/kernel.c - Keyboard input → VGA text output: prints characters
kernel/idt.c