code wiki / _hdl_build / nx_mmap_probe.nx
nx_mmap_probe.nx
buildroot/runtime/_hdl_build/nx_mmap_probe.nx
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
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
structs
| none |
consts
| 7 | const K_MAGIC_4096: i64 = 4096 |
| 8 | const K_MAGIC_4095: i64 = 4095 |
| 9 | const K_MAGIC_2400000: i64 = 2400000 |
| 10 | const K_MAGIC_2399999: i64 = 2399999 |
| 11 | const K_MAGIC_16777216: i64 = 16777216 |
| 12 | const K_MAGIC_16777215: i64 = 16777215 |
functions
| 14 | func mp_w(s: *u8) -> i64 { return sj_puts(s) } |
| 16 | func main() -> i64 |