How math-fehr/windos works
Main System Components
a) Hardware Layer (Bottom)
• ARM Processor (Cortex-A7)
• Memory Management Unit (MMU)
• Hardware Peripherals
• GPIO Controller
• UART/Serial
• Framebuffer
• Timer
• Interrupt Controller
b) Kernel Layer (Middle)
• Core Kernel Components
• Memory Management (memalloc.c, mmu.c)
• Process Management (process.c, scheduler.c)
• Interrupt Handling (interrupts.c)
• System Calls (syscalls.c)
c) File System Layer
• Virtual File System (vfs.c)
• File System Types
• EXT2 (ext2.c)
• PipeFS (pipefs.c)
• ProcFS (procfs.c)
d) User Space Layer (Top)
• System Programs
• Shell (wesh)
• Utilities (ls, cat, cp, etc.)
• Applications (pico editor, buddhabrot, etc.)
Component Relationships
• System call flow (user space → kernel)
• Hardware interactions (kernel → hardware)
• File system operations (VFS → concrete file systems)
• Process management flow
┌─────────────────────────────────────┐
• User Space (Applications & Utilities)│
• ┤
• System Call Interface │
• ┤
• Kernel (Process, Memory, VFS) │
• ┤
• Hardware Abstraction Layer │
• ┤
• Physical Hardware │
• ┘
Important Details
• Memory Management:
• Page allocation system
• Virtual memory mapping
• Process Management:
• Scheduler
• Process creation/destruction
• Signal handling
• File Systems:
• VFS abstraction
• Multiple FS support
• Device Management:
• Device drivers
• Hardware interfaces