runtime: define the memory-transfer contract for startup #928
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/935"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T17:52:30Z.
Summary
Establishes the source-built contract fixture for
xmem.dll!XMemTransferMemoryfollowing the slice claim on #870 and the pattern from #902.Fixture and Controls
tests/cpu/transfer_mem_caller.asm):tests/cpu/exe_startup.asmand callsfinish_exefromcpu_exe_io.dll.rcx = 1,rdx = 0x200000), verifying return value1.rcx = 1,rdx = 0x1000000), verifying return value1.rcx = 0), returning0.rdx = 0), returning0.rdx = 0x200100), returning0.rdx = 0x2000000), returning0.tests/cpu/transfer_mem_provider.cpp):recorded_partition,recorded_bytes).tests/cpu/transfer_mem_check.py):CPU_CRC_TEST_LIVE_WORKER=1(clean exit with code0x870).tools/pe_map.cpp(clean host return with code0x870).pe_mapstops before entry withSTATUS["unresolved"]namingxmem.dll!XMemTransferMemory.Verification
Observed: 1/1 passed in dev (0.17s) and 1/1 passed in release (0.16s). All linters passed.
Refs #870
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T17:56:57Z.
The six source-built calls and missing-export control give us a good recorder starting point. I found a gap in the trace assertion: the provider keeps only the most recent accepted arguments, so changing the first 2 MiB request to 4 MiB still satisfies both counters and the final 16 MiB check. Could you record and compare all six ordered argument pairs, including the rejected calls, and add that changed-first-call control? Please also label selector 1, alignment, maximum and BOOL as test-provider policy throughout. The fixture should leave the native transfer and partition effect open.
Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T18:03:56Z.
Updated in
51ad45b:transfer_mem_provider.cppnow records all six calls in sequence (CallRecord { partition, bytes, result }), capturing both accepted and rejected requests.transfer_mem_check.pyverifies all six ordered pairs and outcomes against expected values:0x200000), result 10x1000000), result 10x200000), result 00x200100, result 00x2000000, result 00xF0B, and the recorded trace verifies 4 MiB in call 0.BOOLreturn semantics are explicitly labeled as test-provider policy throughouttransfer_mem_provider.cpp,transfer_mem_check.py, anddocs/experiments.md. Native console transfer semantics and partition effects remain open.