How cazzuloa/fs-os works
FS-Os is an experimental 32-bit x86 operating system. Its user-visible workflow is BIOS boot, bootloader disk load and protected-mode handoff, kernel initialization, then keyboard-driven shell commands with VGA output. The graph includes the documented interrupt, keyboard, timer, and shell capabilities. Some implementation files were not sampled; links for those stages rely on the README, and uncertain internal wiring is omitted.
Main entry points: shell.c Interactive shell · idt.c IDT and dispatch · kernel.c Kernel startup · keyboard.c PS/2 keyboard
Components 16
Boot
- Bootloader
bootloader/boot.asm
Kernel core
- Kernel entry
kernel/src/start.S - Kernel startup
kernel/src/kernel.c - IDT and dispatch
kernel/src/idt.c - ISR stubs
kernel/src/isr.asm
Input and shell
- PS/2 keyboard
kernel/src/keyboard.c - Interactive shell
kernel/src/shell.c
Kernel services
- PIC controller
kernel/src/pic.c - PIT timer
kernel/src/timer.c - VGA text driver
kernel/src/vga.c - Formatted output
kernel/src/kprintf.c - String and memory
kernel/src/kstring.c
Other components
- BIOS
- User
- Boot disk
- x86 hardware
Connections 23
- BIOS → Bootloader: loads at 0x7C00
Readme.md - Bootloader → Boot disk: reads kernel sectors
Readme.md - Bootloader → Kernel entry: jumps at 0x1000
Readme.md - Kernel entry → Kernel startup: enters kernel
Readme.md - Kernel startup → IDT and dispatch: initializes IDT
Readme.md - IDT and dispatch → PIC controller: remaps PIC
kernel/src/idt.c - IDT and dispatch → ISR stubs: registers stubs
kernel/src/idt.c - IDT and dispatch → VGA text driver: reports exceptions
kernel/src/idt.c - Kernel startup → PS/2 keyboard: initializes driver
Readme.md - Kernel startup → PIT timer: initializes PIT
Readme.md - Kernel startup → Interactive shell: starts shell
Readme.md - PS/2 keyboard → IDT and dispatch: registers IRQ handler
kernel/src/keyboard.c - PS/2 keyboard → PIC controller: unmasks IRQ1
kernel/src/keyboard.c - PIT timer → IDT and dispatch: registers IRQ handler
Readme.md - PIT timer → PIC controller: unmasks IRQ0
Readme.md - User → PS/2 keyboard: types keys
Readme.md - Interactive shell → PS/2 keyboard: reads characters
kernel/src/shell.c - Interactive shell → PIT timer: reads ticks or sleeps
kernel/src/shell.c - Interactive shell → Formatted output: prints commands
kernel/src/shell.c - Interactive shell → VGA text driver: edits and clears display
kernel/src/shell.c - Interactive shell → String and memory: parses command text
kernel/src/shell.c - Formatted output → VGA text driver: writes characters
kernel/src/kprintf.c - VGA text driver → x86 hardware: updates text display
Readme.md