
omni / synphoni / bootmem.omni↗
01 / SYSTEMS PROGRAMMING
Synphoni WEI
From a function to an experimental kernel.
Memory, IPC and device experiments. A kernel written largely in Omni, with scoped QEMU tests and open questions.
Explore Synphoni ↗pub func add_memory(bm BootMem, base u64, size u64) Result<BootMem,phys.MemErr> !pure {
if bm.handed_off { return Err<BootMem,phys.MemErr>(phys.MemErr.WrongPhase()) }
match rs.add_range(bm.memory, base, size, rs.zero_region()) {
Ok(m) { return Ok<BootMem,phys.MemErr>(with_memory(bm, m)) }
Err(e) { return Err<BootMem,phys.MemErr>(e) }
}
}21f221e9441b · Requires phys / regionset. Not executed here.




