- Implement Design by Contract in HAL and Kernel (Phase 2 Task 1) - Add invariant checks to Sovereign Channels (pointer validation, bounds) - Create invariant.nim for secure Logic-to-HAL transitions - Codify Silence Doctrine in DOCTRINE.md and SPEC files - Finalize Blink Recovery confirmation via Saboteur test - Update SPEC-008, SPEC-009, SPEC-010, SPEC-011 with architectural refinements - Sync Website vision with new technical milestones |
||
|---|---|---|
| .. | ||
| include | ||
| ion | ||
| net | ||
| README.md | ||
| bus.nim | ||
| channel.nim | ||
| crypto.nim | ||
| cstubs.c | ||
| fiber.nim | ||
| invariant.nim | ||
| ion.nim | ||
| kernel.nim | ||
| loader.zig | ||
| net.nim | ||
| npl.nim | ||
| overrides.c | ||
| panicoverride.nim | ||
| re-symbol.txt | ||
| ring.nim | ||
| watchdog.nim | ||
README.md
Rumpk Core (L1)
Language: Nim
Purpose: Architecture-agnostic kernel logic
Module Index
| File | Purpose |
|---|---|
kernel.nim |
Main entry point (kmain), fiber test |
fiber.nim |
Cooperative fiber abstraction |
ring.nim |
Lock-free Disruptor ring buffer |
panicoverride.nim |
Nim panic handler for freestanding |
Architecture Independence
This folder contains no architecture-specific code. All platform-specific
details are handled by the HAL layer (../hal/).
Compile-time architecture selection uses Nim's when defined():
when defined(amd64):
const CONTEXT_SIZE = 56
elif defined(arm64):
const CONTEXT_SIZE = 96
elif defined(riscv64):
const CONTEXT_SIZE = 112
Dependencies
- Imports
console_write,rumpk_haltfrom HAL (Zig L0) - Imports
cpu_switch_tofrom arch-specific assembly - Uses
mm:arcmemory management (no GC)
Build
Built via ../build.sh [aarch64|x86_64|riscv64]