code wiki / _hdl_build / nx_ktest.nx
nx_ktest.nx
buildroot/runtime/_hdl_build/nx_ktest.nx
about
nx_ktest.nx -- R1 probe: what does nx_cc emit for a freestanding-style kernel function?
kpoke writes bytes to a caller-passed pointer (a "framebuffer") using only pointer stores +
arithmetic -- NO syscalls. This is the shape a compiled bare-metal kernel body would take
(draw to a framebuffer the boot stub hands it). We compile this and inspect kpoke's asm to
learn the calling convention + the exact x86-64 instructions nx_cc generates.
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
| 9 | func kpoke(fb: *u8, n: i64) -> i64 called by 1: main |
| 20 | func main(argc: i64, argv: *i64) -> i64 |