How orangethewell/tupiny works
Aurora OS is a small x86_64 experimental kernel. Its boot entry initializes memory and heap, interrupt infrastructure, display/TTY, and IDE detection, then starts async example and keyboard tasks under the executor. Other implemented capabilities include ELF-backed thread setup and timer-driven scheduling, syscall support, PCI scanning, and FAT access through IDE. The graph follows only relationships visible in excerpts or the source index; syscall and IDE filesystem internals are included where supported, but their runtime wiring is not assumed.
Main entry points: main.rs Kernel entry · interrupts.rs Interrupt and APIC · process.rs Thread scheduling · memory.rs Memory mapping
Components 18
Kernel startup
- Kernel entry
kernel/src/main.rs
Platform core
- Memory mapping
kernel/src/memory.rs - Heap allocator
kernel/src/allocator.rs - GDT and TSS
kernel/src/gdt.rs - Interrupt and APIC
kernel/src/interrupts.rs - Syscall handling
kernel/src/syscall.rs
Display and input
- Framebuffer display
kernel/src/framebuffer.rs - TTY console
kernel/src/tty.rs - Keyboard stream
kernel/src/task/keyboard.rs
Tasks and processes
- Async executor
kernel/src/task/executor.rs - Simple executor
kernel/src/task/simple_executor.rs - Task abstraction
kernel/src/task/mod.rs - Thread scheduling
kernel/src/process.rs
Device and storage
- IDE and FAT access
kernel/src/ide.rs - Serial console
kernel/src/serial.rs
Other components
- x86 hardware
- Bootloader info
- IDE disk
Connections 30
- Kernel entry → Memory mapping: initializes
kernel/src/main.rs - Kernel entry → Heap allocator: initializes
kernel/src/main.rs - Kernel entry → Interrupt and APIC: initializes
kernel/src/main.rs - Kernel entry → Framebuffer display: creates display
kernel/src/main.rs - Kernel entry → TTY console: activates
kernel/src/main.rs - Kernel entry → IDE and FAT access: detects devices
kernel/src/main.rs - Kernel entry → Async executor: runs
kernel/src/main.rs - Kernel entry → Keyboard stream: spawns task
kernel/src/main.rs - Kernel entry → Task abstraction: creates task
kernel/src/main.rs - Kernel entry → GDT and TSS: initializes
kernel/src/main.rs - Kernel entry → Serial console: logs through
kernel/src/main.rs - Bootloader info → Kernel entry: provides boot data
kernel/src/main.rs - Memory mapping → x86 hardware: maps pages
- Heap allocator → Memory mapping: allocates from frames
- Framebuffer display → x86 hardware: writes pixels
- TTY console → Framebuffer display: draws to
kernel/src/tty.rs - Interrupt and APIC → GDT and TSS: uses stack indices
kernel/src/interrupts.rs - Interrupt and APIC → Thread scheduling: schedules on timer
kernel/src/interrupts.rs - Interrupt and APIC → Keyboard stream: queues scancodes
kernel/src/interrupts.rs - Interrupt and APIC → x86 hardware: configures APIC
- Async executor → Task abstraction: polls
kernel/src/task/executor.rs - Simple executor → Task abstraction: polls
kernel/src/task/simple_executor.rs - Async executor → x86 hardware: halts when idle
- Keyboard stream → TTY console: prints keypresses
- Thread scheduling → Memory mapping: maps ELF segments
kernel/src/process.rs - Thread scheduling → GDT and TSS: sets thread stack
kernel/src/process.rs - Thread scheduling → x86 hardware: switches contexts
- Syscall handling → x86 hardware: handles system calls
- IDE and FAT access → IDE disk: reads and writes sectors
- IDE and FAT access → x86 hardware: probes IDE ports