How cfenollosa/os-tutorial works
os-tutorial is a sequence of small, progressively developed OS examples, not one integrated application. The visible progression moves from C basics through VGA output and interrupt handling to a kernel with keyboard, timer, and libc support; the README also identifies memory management and a simple shell as course goals. The graph emphasizes the later kernel snapshots and the documented tutorial workflow. Source excerpts are partial, so some documented capabilities and unsampled subsystem links are shown only where the README or index supports them.
Main entry points: isr.c Interrupt dispatch · screen.c Screen output · kernel.c Shell kernel · keyboard.c Keyboard driver
Components 18
Kernel lessons
- C foundations
12-kernel-c/function.c - Barebones kernel
13-kernel-barebones/kernel.c - Video port lesson
15-video-ports/kernel/kernel.c
CPU and interrupts
- Interrupt handling
18-interrupts/cpu/isr.c - IRQ handling
19-interrupts-irqs/cpu/isr.c - Interrupt dispatch
23-fixes/cpu/isr.c - Interrupt table
23-fixes/cpu/idt.c
Drivers and I/O
- VGA screen
16-video-driver/drivers/screen.c - Screen scrolling
17-video-scroll/drivers/screen.c - Timer driver
20-interrupts-timer/cpu/timer.c - Keyboard driver
20-interrupts-timer/drivers/keyboard.c - Screen output
23-fixes/drivers/screen.c - Port I/O
23-fixes/cpu/ports.c
Kernel runtime
- Shell kernel
23-fixes/kernel/kernel.c - String utilities
23-fixes/libc/string.c - Memory utilities
23-fixes/libc/mem.c
Other components
- Tutorial learner
- Keyboard and timer hardware
Connections 22
- Tutorial learner → C foundations: starts with
- C foundations → Barebones kernel: continues to
- Barebones kernel → Video port lesson: continues to
- Video port lesson → VGA screen: continues to
- VGA screen → Screen scrolling: extends
17-video-scroll/drivers/screen.c - Screen scrolling → Interrupt handling: continues to
- Interrupt handling → IRQ handling: continues to
- IRQ handling → Timer driver: continues to
- Timer driver → Keyboard driver: continues to
- Shell kernel → Interrupt dispatch: installs
23-fixes/kernel/kernel.c - Shell kernel → Screen output: prints through
23-fixes/kernel/kernel.c - Shell kernel → String utilities: uses
23-fixes/kernel/kernel.c - Shell kernel → Memory utilities: uses
23-fixes/kernel/kernel.c - Interrupt dispatch → Interrupt table: configures
23-fixes/cpu/isr.c - Interrupt dispatch → Screen output: reports through
23-fixes/cpu/isr.c - Interrupt dispatch → Keyboard driver: initializes
23-fixes/cpu/isr.c - Interrupt dispatch → String utilities: uses
23-fixes/cpu/isr.c - Screen output → Port I/O: accesses cursor
23-fixes/drivers/screen.c - Screen output → Memory utilities: copies screen data
23-fixes/drivers/screen.c - Keyboard driver → Screen output: prints keys
20-interrupts-timer/drivers/keyboard.c - Keyboard and timer hardware → Keyboard driver: provides scancodes
20-interrupts-timer/drivers/keyboard.c - Keyboard and timer hardware → Timer driver: interrupt source