How fathurwithyou/32bit-kernel-oshi_no_ko works
OShi-no-Ko is a small x86 operating system. Its documented execution path boots the kernel, initializes CPU and device facilities, loads the shell from EXT2, creates a user process, and starts scheduling; user requests enter through interrupts and syscalls. The graph also preserves the filesystem, graphics, keyboard, clock, and external file-insertion capabilities evidenced by the tree and source index. Relationship evidence is limited to the excerpts, indexed references, and README; unsampled wiring is omitted rather than inferred.
Main entry points: kernel.c Kernel setup · interrupt.c Interrupt handling · ext2.c EXT2 filesystem · scheduler.c Scheduler
Components 21
Kernel and CPU
- Kernel setup
src/kernel.c - GDT and TSS
src/cpu/gdt.c - Interrupt tables
src/cpu/idt.c - Interrupt handling
src/cpu/interrupt.c - Port I/O
src/cpu/portio.c
Processes and I/O
- Virtual memory
src/paging/paging.c - Process manager
src/process/process.c - Scheduler
src/scheduler/scheduler.c - Context switching
src/scheduler/context-switch.s - Keyboard input
src/keyboard.c - Scancode mapping
src/scancode.c - String utilities
src/stdlib/string.c
Storage and display
- ATA disk driver
src/driver/disk.c - EXT2 filesystem
src/filesystem/ext2.c - Graphics display
src/graphics/graphics.c - Text framebuffer
src/text/framebuffer.c - Clock hardware
src/cmos/cmos.c
User programs
- User shell
src/external/user-shell.c - Clock program
src/external/clock.c - File inserter
src/external/external-inserter.c
Other components
- System operator
Connections 27
- System operator → Kernel setup: runs system
README.md - Kernel setup → GDT and TSS: loads descriptors
src/kernel.c - Kernel setup → Interrupt tables: initializes tables
src/kernel.c - Kernel setup → Interrupt handling: enables interrupts
src/kernel.c - Kernel setup → Graphics display: initializes display
src/kernel.c - Kernel setup → EXT2 filesystem: initializes filesystem
src/kernel.c - Kernel setup → Virtual memory: allocates kernel page
src/kernel.c - Kernel setup → Process manager: creates shell process
src/kernel.c - Kernel setup → Scheduler: starts scheduling
src/kernel.c - Interrupt handling → Keyboard input: dispatches input
src/cpu/interrupt.c - Interrupt handling → EXT2 filesystem: dispatches syscalls
src/cpu/interrupt.c - Interrupt handling → Graphics display: dispatches display calls
src/cpu/interrupt.c - Interrupt handling → Process manager: handles process exit
src/cpu/interrupt.c - Interrupt handling → Scheduler: handles timer
src/cpu/interrupt.c - Keyboard input → Scancode mapping: uses mappings
src/keyboard.c - Process manager → Virtual memory: manages address spaces
src/process/process.c - Scheduler → Process manager: selects process
src/scheduler/scheduler.c - Scheduler → Context switching: switches context
- EXT2 filesystem → ATA disk driver: reads and writes blocks
- Graphics display → Port I/O: programs display ports
src/graphics/graphics.c - Text framebuffer → Port I/O: controls cursor
src/text/framebuffer.c - Clock hardware → Port I/O: reads clock ports
src/cmos/cmos.c - Kernel setup → User shell: loads executable
src/kernel.c - User shell → EXT2 filesystem: requests file operations
- Clock program → Clock hardware: reads clock
src/external/clock.c - File inserter → EXT2 filesystem: inserts files
- Kernel setup → String utilities: uses memory helpers
src/kernel.c