code wiki / _hdl_build / _gpu_dxg_gate_tamper.nx

_gpu_dxg_gate_tamper.nx

buildroot/runtime/_hdl_build/_gpu_dxg_gate_tamper.nx

2932 B46 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic gpu
docsdependenciesstructsconstsfunctions

about

_gpu_dxg_gate_tamper.nx -- NO-FALSE-GREEN PROOF for _gpu_dxg_gate. Identical logic, EXCEPT the "real call" uses a BOGUS ioctl code (magic 0x99 instead of 0x47/LX_DXENUMADAPTERS2). If the real gate's GREEN were a constant/no-op, this would still print GREEN. It must instead go RED, proving the real gate's GREEN comes from the kernel ACCEPTING the genuine LX_DXENUMADAPTERS2 code -- a real device response, not a fabricated marker. This is a throwaway control, not a shipped organ. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx _gpu_dxg_gate_tamper.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 t_p sys_write sys_openat_rd sys_exit sys_mmap sys_ioctl sys_close t_n sys_mmap ↻ sys_write ↻

structs

none

consts

11const BOGUS_ENUM: i64 = 0x99104714
12const TAMPER_MAGIC: i64 = 0x99000000

functions

14func t_set(res: *u8, off: i64, v: i64) -> i64 { let p: *i64 = (res as i64 + off) as *i64; p[0] = v; return 0 }
15func t_get(res: *u8, off: i64) -> i64 { let p: *i64 = (res as i64 + off) as *i64; return p[0] }
17func t_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
18func t_n(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
20func main() -> i64