code wiki / _hdl_build / nx_mmap_probe.nx

nx_mmap_probe.nx

buildroot/runtime/_hdl_build/nx_mmap_probe.nx

1327 B28 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_mmap_probe.nx -- pins the sovereign large-immediate/mmap bug: sovereign-built nxasm bails pre-pass0 on 2.36MB inputs while the gcc-built one reads fine. Probes sys_mmap at small/2.4MB/16MiB (the NXASM_BUF constant). Run VIA nx_sov_build_run; trust its run-exit= line ONLY (bash $? lies). exit 0 = all mmaps good (bug elsewhere: read loop) ; 1/2/3 = which size failed. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_sovjson_lib.nx nx_syscalls.nx nx_mmap_probe.nx

imports: nx_sovjson_lib.nxnx_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 mp_w sj_puts sys_write sys_exit

structs

none

consts

7const K_MAGIC_4096: i64 = 4096
8const K_MAGIC_4095: i64 = 4095
9const K_MAGIC_2400000: i64 = 2400000
10const K_MAGIC_2399999: i64 = 2399999
11const K_MAGIC_16777216: i64 = 16777216
12const K_MAGIC_16777215: i64 = 16777215

functions

14func mp_w(s: *u8) -> i64 { return sj_puts(s) }
called by 1: main calls 1: sj_puts
16func main() -> i64