How bluethefoxofficial/forest-os works
Forest OS is an educational Unix-like operating system spanning boot code, a kernel, libc, and userspace programs. Its principal workflow is booting into the kernel and providing userspace programs with system services; the tree also shows substantial memory, interrupt, graphics, input, and networking subsystems. The sampled excerpts support specific graphics, PS/2, TLB, memory-region, and authentication syscall relationships, but do not establish most boot, shell-dispatch, or kernel initialization wiring, so those links are omitted.
Main entry points: tlb_manager.c TLB management · ps2_controller.c PS/2 controller · window_manager.c Window manager · auth.c Auth wrappers
Components 20
Boot and kernel
- BIOS boot
src/bios/bios_main.c - UEFI boot
src/uefi/uefi_main.c - Kernel core
src/kernel.c - Syscall interface
src/syscall.c - Virtual filesystem
src/vfs.c
Memory and interrupts
- Memory management
src/mm_init.c - Region protection
src/memory_region_manager.c - TLB management
src/tlb_manager.c - Interrupt subsystem
src/interrupt.c - Controller abstraction
src/interrupt_controller_abstraction.c
Devices and graphics
- PS/2 controller
src/ps2_controller.c - Keyboard input
src/keyboard_interrupt_handler.c - Networking
src/net.c - Graphics API
src/graphics/graphics_manager.c - Window manager
src/graphics/window_manager.c
Userspace
- Shell
userspace/shell.c - User programs
userspace
C library
- Auth wrappers
userspace/libc/auth.c - Libc interfaces
libs/libc/include/libc
Other components
- User
Connections 5
- User → Shell: interacts with
- Auth wrappers → Syscall interface: invokes user syscall
- Window manager → Graphics API: draws through
- TLB management → Memory management: supports mappings
- PS/2 controller → Keyboard input: provides controller I/O