code wiki / (root) / smoke_mmap.nx

smoke_mmap.nx

buildroot/runtime/smoke_mmap.nx

415 B15 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind smoketopic smoke
docsdependenciesstructsconstsfunctions

about

smoke_mmap.nx -- verify sys_mmap works in our RV64 ELF chain. If this exits 7, sys_mmap returned a valid pointer + the memory is writeable + readable. If it segfaults / exits non-zero, the chain has a sys_mmap bug.

dependencies 1 imports · 0 importers

syscalls.nx smoke_mmap.nx

imports: syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

9func main() -> i64 {