code wiki / _hdl_build / nx_ktest.nx

nx_ktest.nx

buildroot/runtime/_hdl_build/nx_ktest.nx

931 B26 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_ktest.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 kpoke sys_write sys_exit

structs

none

consts

none

functions

9func kpoke(fb: *u8, n: i64) -> i64
called by 1: main
20func main(argc: i64, argv: *i64) -> i64