VICTORY: All page faults (Code 12, 13, 15) eliminated. NipBox runs in isolated userspace. Root Cause Diagnosed: - Kernel BSS (0x84D5B030) was overwritten by NipBox loading at 0x84000000 - current_fiber corruption caused cascading failures Strategic Fixes: 1. Relocated NipBox to 0x86000000 (eliminating BSS collision) 2. Expanded DRAM to 256MB, User region to 64MB (accommodating NipBox BSS) 3. Restored Kernel GP register in trap handler (fixing global access) 4. Conditionally excluded ion/memory from userspace builds (removing 2MB pool) 5. Enabled release build optimizations (reducing BSS bloat) Results: - Kernel globals: SAFE - User memory: ISOLATED (Sv39 active) - Syscalls: OPERATIONAL - Scheduler: STABLE - NipBox: ALIVE (waiting for stdin) Files Modified: - core/rumpk/apps/linker_user.ld: User region 0x86000000-0x89FFFFFF (64MB) - core/rumpk/hal/mm.zig: DRAM 256MB, User map 32-256MB - core/rumpk/hal/entry_riscv.zig: GP reload in trap handler - core/rumpk/core/ion.nim: Conditional memory export - core/rumpk/libs/membrane/ion_client.nim: Local type declarations - core/rumpk/libs/membrane/net_glue.nim: Removed ion import - core/rumpk/libs/membrane/compositor.nim: Stubbed unused functions - src/nexus/builder/nipbox.nim: Release build flags Next: Fix stdin delivery to enable interactive shell. |
||
|---|---|---|
| .. | ||
| fs | ||
| include | ||
| ion | ||
| loader | ||
| README.md | ||
| channel.nim | ||
| cstubs.c | ||
| fiber.nim | ||
| invariant.nim | ||
| ion.nim | ||
| kernel.nim | ||
| loader.nim | ||
| loader.zig | ||
| netswitch.nim | ||
| overrides.c | ||
| panicoverride.nim | ||
| re-symbol.txt | ||
| ring.nim | ||
| watchdog.nim | ||
| write_wrapper.nim | ||
README.md
Rumpk Core (L1)
Language: Nim
Purpose: Architecture-agnostic kernel logic
Module Index
| File | Purpose |
|---|---|
kernel.nim |
Main Orchestrator (kmain) |
ion.nim |
ION Control Plane & Channel API |
fiber.nim |
Cooperative fiber abstraction |
watchdog.nim |
Autonomous Immune System (Healer) |
ring.nim |
Lock-free Sovereign ring buffers |
panicoverride.nim |
Freestanding panic handler |
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]