code wiki / _hdl_build / _gpu_dxg_r4d_probe4.nx
_gpu_dxg_r4d_probe4.nx
buildroot/runtime/_hdl_build/_gpu_dxg_r4d_probe4.nx
about
_gpu_dxg_r4d_probe4.nx -- SOVEREIGN-GPU ladder R4d PROBE pass 4: find the StandardAllocation flag bit
and attempt a UMD-less EXISTINGHEAP standard allocation on the 5080.
Mapped so far (probes 1-3): global d3dkmt_createallocation (72B) device@0, alloc_count@44, allocation_info@48;
entry d3dkmt_allocationinfo2 allocation@0(OUT), sysmem@16, priv_drv_data@24. The struct mirrors Windows
D3DKMT_CREATEALLOCATION, predicting global flags@12, private_runtime_data@16, priv_drv_data@32(=pStandardAllocation
when StandardAllocation flag set), priv_drv_data_size@40. EXISTINGHEAP standard alloc = no vendor UMD blob:
desc D3DKMT_CREATESTANDARDALLOCATION { Type@0 = EXISTINGHEAP(1); Size@8 = bytes }, sysmem in the entry.
Method: hold the EXISTINGHEAP descriptor + page-aligned sysmem fixed, sweep flags@12 over bits 0..23, print
ret per bit. The bit that takes the host off the -75 EOVERFLOW path = StandardAllocation. If any fire returns
0, dump the entry's OUT allocation handle. raw syscalls only. No log writes. license_tier: ORIGINAL
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
| 14 | const ENUM2_CODE: i64 = 0xC0104714 |
| 15 | const QAI_CODE: i64 = 0xC0184709 |
| 16 | const OAFL_CODE: i64 = 0xC00C4701 |
| 17 | const CDEV_CODE: i64 = 0xC0404702 |
| 18 | const CALLOC_CODE: i64 = 0xC0484706 |
functions
| 20 | func p(s: *u8) -> i64 { var nn: i64=0; while s[nn]!=(0 as u8){nn=nn+1} sys_write(1,s,nn); return 0 } |
| 21 | func 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 } |
| 22 | func x(v: i64) -> i64 { p("0x" as *u8); let bb:*u8=sys_mmap(20); var k:i64=0; var m:i64=v; if m==0{bb[0]=48;k=1}; while m>0{ let d:i64=m&15; if d<10{bb[k]=(48+d) as u8}else{bb[k]=(87+d) as u8}; m=(m>>4); k=k+1 } var i:i64=0; let o:*u8=sys_mmap(20); while i<k{o[i]=bb[k-1-i];i=i+1} sys_write(1,o,k); return 0 } |
| 23 | func rd32(buf: *u8, off: i64) -> i64 { return (buf[off] as i64)|((buf[off+1] as i64)<<8)|((buf[off+2] as i64)<<16)|((buf[off+3] as i64)<<24) } |
| 25 | func query_type(fd: i64, handle: i64, qtype: i64, psize: i64, outv: *i64) -> i64 |
| 33 | func open_from_luid(fd: i64, luid_lo: i64, luid_hi: i64, outh: *i64) -> i64 |
| 38 | func create_device(fd: i64, adapter: i64, outd: *i64) -> i64 |
| 43 | func setu32(buf: *u8, off: i64, val: i64) -> i64 { let w: *u8 = (buf as i64 + off) as *u8; w[0]=(val&0xff) as u8; w[1]=((val>>8)&0xff) as u8; w[2]=((val>>16)&0xff) as u8; w[3]=((val>>24)&0xff) as u8; return 0 } |
| 44 | func setu64(buf: *u8, off: i64, val: i64) -> i64 { let q: *i64 = (buf as i64 + off) as *i64; q[0]=val; return 0 } |
| 47 | func fire_std(fd: i64, device: i64, flagval: i64, desc: *u8, descsz: i64, sysmem: *u8, entry: *u8, outh: *i64) -> i64 |
| 62 | func main() -> i64 |