How daegatoya/barelyos works
BarelyOS is an experimental, freestanding C++ operating-system kernel intended to boot in a virtual machine. The principal path is firmware/bootloader handoff to the Limine-aware kernel entry, which initializes memory, display, keyboard, scheduler, and shell, then polls for keyboard input and passes characters to the shell. The shell and terminal provide a minimal interactive CLI; memory management and cooperative thread scheduling are additional kernel capabilities. Edges are limited to relationships visible in the supplied excerpts, source index, or README; some internal calls are not shown.
Main entry points: main.cpp Kernel entry · shell.cpp Command shell · terminal.cpp Text terminal · graphics.cpp Framebuffer graphics
Components 15
Boot and kernel
- Limine handoff
BarelyOS/boot/limine.h - Kernel entry
BarelyOS/kernel/main.cpp
Console interaction
- Keyboard input
BarelyOS/kernel/keyboard/keyboard.cpp - Scan-code map
BarelyOS/kernel/keyboard/scanCodeTable.h - Command shell
BarelyOS/kernel/shell/shell.cpp - Text terminal
BarelyOS/kernel/terminal/terminal.cpp - Framebuffer graphics
BarelyOS/kernel/graphics/graphics.cpp
Memory and threading
- Physical memory
BarelyOS/kernel/memory/pmm.cpp - Thread scheduler
BarelyOS/kernel/threading/scheduler.cpp - Thread context
BarelyOS/kernel/threading/thread.h - CPU context
BarelyOS/kernel/threading/cpucontext.h
Kernel support
- Bitmap font
BarelyOS/kernel/fonts/bitmap_font.cpp - 8x8 glyph data
BarelyOS/kernel/fonts/font8xx8_basic.h - Memory routines
BarelyOS/kernel/memory/mem.cpp
Other components
- VM user
Connections 17
- VM user → Limine handoff: boots image
README.md - Limine handoff → Kernel entry: hands off
BarelyOS/kernel/main.cpp - Kernel entry → Keyboard input: polls input
BarelyOS/kernel/main.cpp - Kernel entry → Command shell: dispatches characters
BarelyOS/kernel/main.cpp - Kernel entry → Physical memory: initializes
BarelyOS/kernel/main.cpp - Kernel entry → Thread scheduler: initializes
BarelyOS/kernel/main.cpp - Kernel entry → Text terminal: initializes
BarelyOS/kernel/main.cpp - Kernel entry → Framebuffer graphics: constructs
BarelyOS/kernel/main.cpp - Kernel entry → Bitmap font: constructs
BarelyOS/kernel/main.cpp - Keyboard input → Scan-code map: maps codes
- Command shell → Text terminal: uses console
- Command shell → Thread scheduler: controls tasks
- Text terminal → Framebuffer graphics: draws text
- Framebuffer graphics → Bitmap font: reads glyphs
- Bitmap font → 8x8 glyph data: uses glyph table
BarelyOS/kernel/fonts/bitmap_font.cpp - Thread scheduler → Physical memory: allocates pages
- Thread context → CPU context: stores context
BarelyOS/kernel/threading/thread.h