How otolias/anthill-os works
Main Components
a. Kernel Layer:
• Boot components (/src/boot)
• Memory Management (/src/kernel/mm.c)
• Task Management (/src/kernel/task.c)
• System Calls (/src/kernel/syscalls.c)
• ELF Loading (/src/kernel/elf.c)
• Message Queue System (/src/kernel/mqueue.c)
b. Driver Layer:
• IRQ Management (/src/drivers/irq)
• Timer Management (/src/drivers/timer)
• UART Communication (/src/drivers/uart)
c. Module System:
• PL011 Driver Module
• RD (RAM Disk) Module
• UART Module
• VFS (Virtual File System) Module
d. Library Layer:
• Standard C Library (libc)
• VFS Library (libvfs)
e. User Space:
• Shell (/src/bin/sh)
• Test Suite
• Hello Program
• ExportFS Utility
[User Space Applications]
• ↕
[System Libraries (libc, libvfs)]
• ↕
[VFS & Module System]
• ↕
[Kernel Core]
• ↕
[Hardware Abstraction Layer]
• ↕
[Hardware (aarch64)]
Key Relationships to Highlight
• Interaction between user space applications and the kernel through system calls
• Message queue system's role in inter-process communication
• Demonstrate how the VFS module interfaces with both the kernel and user space
• Driver modules' relationship with the hardware abstraction layer
Implementation Details
• Rectangles: Major subsystems
• Hexagons: Modules
Additional Elements
• A boot sequence flow
• Memory management architecture
• Task scheduling system
• Interrupt handling paths