How stre4k/aprismaos works
AprismaOS is a work-in-progress 32-bit x86 operating-system kernel, with a small accompanying C library. Its present user-visible path is keyboard input through the command-line buffer and shell parsing/dispatch to commands, which report through the terminal. The graph also shows boot/kernel services, CPU and interrupt support, and libc. Kernel initialization and several shell modules are unsampled, so links based only on their apparent roles are omitted; README plans such as filesystems and networking are not represented as implemented components.
Main entry points: kernel.c Kernel startup · keyboard.c Keyboard driver · shell.c Shell loop · libc C library
Components 25
Boot and Kernel
- Kernel startup
src/kernel/core/kernel.c - Boot information
src/kernel/core/multiboot.c - Kernel panic
src/kernel/core/panic.c - Kernel logging
src/kernel/core/printk.c
x86 Hardware
- CPU detection
src/kernel/arch/i386/cpu/cpuid.c - CPU mode
src/kernel/arch/i386/cpu/cpumode.c - GDT
src/kernel/arch/i386/descriptors/gdt.c - IDT
src/kernel/arch/i386/descriptors/idt.c - Task state
src/kernel/arch/i386/descriptors/tss.c - Interrupt handlers
src/kernel/arch/i386/interrupts/isr.c - PIC
src/kernel/arch/i386/interrupts/pic.c - Local APIC
src/kernel/arch/i386/interrupts/lapic.c - Timer services
src/kernel/arch/i386/interrupts/timer.c
Input and Shell
- Keyboard driver
src/kernel/drivers/keyboard.c - Command line
src/kernel/shell/cmdline.c - Shell loop
src/kernel/shell/shell.c - Argument parser
src/kernel/shell/parser.c - Command dispatch
src/kernel/shell/commands/commands.c - Shell commands
src/kernel/shell/commands - Text terminal
src/kernel/drivers/tty.c
C Library
- C library
src/libc - Formatted output
src/libc/stdio/printf.c - Character output
src/libc/stdio/putchar.c - Utility routines
src/libc
Other components
- Multiboot loader
Connections 20
- Multiboot loader → Kernel startup: starts
- Kernel startup → Boot information: initializes
- Kernel startup → GDT: initializes
- Kernel startup → IDT: initializes
- Kernel startup → Task state: initializes
- Kernel startup → CPU detection: detects CPU
- CPU detection → Kernel logging: reports
- Kernel startup → Shell loop: starts
- Shell loop → Argument parser: parses input
- Shell loop → Command dispatch: dispatches
- Command dispatch → Shell commands: invokes
- Keyboard driver → Command line: sends characters
- Keyboard driver → Text terminal: updates display
- Keyboard driver → PIC: acknowledges IRQ
- Keyboard driver → Interrupt handlers: registers handler
- Interrupt handlers → PIC: dispatches IRQ
- Kernel logging → Text terminal: writes characters
- Formatted output → Character output: writes characters
- C library → Formatted output: provides
- C library → Utility routines: provides