code wiki / _hdl_build / nx_syscalls_gate.nx
nx_syscalls_gate.nx
buildroot/runtime/_hdl_build/nx_syscalls_gate.nx
about
nx_syscalls_gate.nx -- THE BASE CONTRACT GATE (arch-board w22 queue row #1: nx_syscalls = 13,307
importers, ZERO direct gate until now; also the mom-3 "never break userspace" hard version). Every
sworn wrapper is proven with a REAL KERNEL ROUND-TRIP -- not presence, BEHAVIOR: bytes written are
bytes read, forked children are reaped with their exact code, shared pages cross fork, dirents list
planted files, negatives FAIL (a gate that cannot fail is not a gate). Composes (fork+exec, fail-
closed) nx_syscall_sanity_kat.elf -- the syscall-NUMBER translation KAT from the RV64/x86 collision
fix -- so number-mistranslation and behavior regressions are both caught here. Any edit to
nx_syscalls.nx must leave this GREEN; the arch board counts it as the base's paired validator.
nx_syscalls_gate -- run the battery; exit 0 GREEN / 1 RED
license_tier: ORIGINAL module: nishi-core.examiner.syscalls_gate No hw writes (rule 26).
dependencies 1 imports · 0 importers
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
structs
| none |
consts
| none |
functions
| 13 | func sg_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func sg_pn(v: i64) -> i64 |
| 21 | func sg_row(name: *u8, ok: i64, fails: *i64) -> i64 |
| 27 | func main(argc: i64, argv: *i64) -> i64 |