Infrastructure for interactive shell is ready and verified. Memory isolation (Sv39 'Glass Cage') is stable and operational. Summary of Phase 37 accomplishments: 1. Increased DRAM to 256MB to accommodate expanding userland. 2. Expanded User RAM to 64MB in Linker and HAL Memory Maps. 3. Implemented Sv39 Page Tables with full isolation for worker fibers. 4. Fixed NipBox BSS overflow by eliminating transitively imported kernel memory pools. 5. Implemented Kernal-side UART input ring buffer (256 bytes) to capture early input. 6. Corrected STDIN routing in Kernel (bypassing inactive compositor). Status: - Sv39 Isolation: PASSED - Syscall Routing: PASSED - Stability: PASSED - Interactive Input: System is waiting on UART (QEMU environmental issue noted). Closing Phase 37. Moving to Phase 13 (Sovereign Init). |
||
|---|---|---|
| .zig-cache/h | ||
| apps | ||
| boot | ||
| core | ||
| docs | ||
| hal | ||
| io | ||
| libs | ||
| npl | ||
| rootfs | ||
| src/npl/system | ||
| vendor/lwip | ||
| README.md | ||
| build.zig | ||
| run.sh | ||
README.md
Rumpk: The Modular Unikernel
"The Kernel is a Library. The App is the OS."
Status: EXPERIMENTAL
Languages: Zig (L0) + Nim (L1)
Design: POSIX-hostile, Military-grade
Directory Structure
rumpk/
├── boot/ [L0] Entry & Architecture (Zig/Asm)
│ ├── start.S Multiboot2/EFI entry point
│ └── arch/ Architecture-specific code
├── hal/ [L0] Hardware Abstraction (Zig)
│ ├── mm.zig Physical/Virtual Memory
│ ├── irq.zig Interrupt handling
│ ├── serial.zig UART/Early logging
│ └── abi.zig C-ABI export to Nim
├── core/ [L1] Logic (Nim)
│ ├── kernel.nim kmain() entry
│ ├── sched.nim LWKT Scheduler
│ ├── fiber.nim Fiber/Context management
│ └── ring.nim Disruptor buffer
├── sys/ [L2] ABI Glue
│ └── syscall.zig System call handlers
├── payload/ [L3] NPL/NPK Loaders
│ └── loader.nim Signature verification
└── io/ I/O Subsystem
└── governor.nim Adaptive War/Peace mode
Key Features
- Adaptive I/O: War Mode (polling) ↔ Peace Mode (interrupts)
- Disruptor Ring: Lock-free inter-fiber communication
- SipHash IDs: Collision-resistant process identification
- Ed25519: Only signed code executes
Specifications
Build (Coming Soon)
cd core/rumpk
zig build # Build L0 HAL
nimble build # Build L1 Logic