Identify the provider and return contract for the loader's first context callback #33

Closed
opened 2026-11-21 11:08:10 +00:00 by R0Y00 · 0 comments
R0Y00 commented 2026-11-21 11:08:10 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T11:08:10Z.


Follow-up to #29 and #32. A read-only check of the packaged loader's non-null ffxDestroyContext path found three details that the source-built callback fixture does not model. The caller passes the address eight bytes into the context as its first argument, reads the target from table slot 1, and saves only the low 32 bits of the return before selecting a cleanup path. This describes the caller's use of the registers. The callback signature and the identity of its provider still need independent evidence.

Trace where the table is initialized and compare the slot with an independently identified provider or published interface definition. Record which incoming arguments the target actually consumes and how the caller propagates the result across cleanup. Use a source-built differential test for any newly supported behavior. Keep unverified layouts unresolved and keep proprietary bytes out of the repository.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6528006196 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/33). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T11:08:10Z. --- Follow-up to #29 and #32. A read-only check of the packaged loader's non-null ffxDestroyContext path found three details that the source-built callback fixture does not model. The caller passes the address eight bytes into the context as its first argument, reads the target from table slot 1, and saves only the low 32 bits of the return before selecting a cleanup path. This describes the caller's use of the registers. The callback signature and the identity of its provider still need independent evidence. Trace where the table is initialized and compare the slot with an independently identified provider or published interface definition. Record which incoming arguments the target actually consumes and how the caller propagates the result across cleanup. Use a source-built differential test for any newly supported behavior. Keep unverified layouts unresolved and keep proprietary bytes out of the repository.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#33
No description provided.