code wiki / (root) / nx_smoke_mmap.nx

nx_smoke_mmap.nx

buildroot/runtime/nx_smoke_mmap.nx

693 B22 linesdepth 2pulls 2 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

nx_syscalls.nx nx_smoke_mmap.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap

structs

none

consts

14const K_MAGIC_4096: i64 = 4096

functions

16func main() -> i64
calls 1: sys_mmap