upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMoonEyes <ducoinbenjamin@yahoo.fr>2026-11-29 15:41:47 +0100
committerGitHub <noreply@github.com>2026-11-29 15:41:47 +0100
commitbd643e46e784daf6bf3a45d09f0ec20e669c4ddb (patch)
tree261d95debcb2ba81f7d6d1478512f355b0930e21 /docs
parentca89cb01894724f6d58fa95b1bf90b91c4cb1e68 (diff)
parent16ac8f30416ef73de425c09ca11cc6cb4796aefc (diff)
Merge pull request #1167 from robot00f/docs/b5
docs(audio_hal_exe_calls): fill the argument gaps the page left open (AUDIO-IMPORT-CALL-SHAPES)
Diffstat (limited to 'docs')
-rw-r--r--docs/audio_hal_exe_calls.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/audio_hal_exe_calls.md b/docs/audio_hal_exe_calls.md
index a500e16fc..42ec9fd78 100644
--- a/docs/audio_hal_exe_calls.md
+++ b/docs/audio_hal_exe_calls.md
@@ -26,7 +26,7 @@ Every one of the 22 has at least one site, so none is dead code the linker kept.
26| `AcpHalReleaseShapeContexts` | 1 | called with a handle read from the first global; result not used | 26| `AcpHalReleaseShapeContexts` | 1 | called with a handle read from the first global; result not used |
27| `ApuCreateHeap` | 1 | second argument `0x226e00`; the result is tested for a negative value | 27| `ApuCreateHeap` | 1 | second argument `0x226e00`; the result is tested for a negative value |
28| `ApuAlloc` | 1 | second argument `0`, third a computed value, fourth `0x800`; the result is not used at the site | 28| `ApuAlloc` | 1 | second argument `0`, third a computed value, fourth `0x800`; the result is not used at the site |
29| `ApuFree` | 1 tail jump | no call, only a tail jump from a wrapper | 29| `ApuFree` | 1 tail jump | the `site` is a whole function that is one `jmp` to the thunk (`0x1443aea10`), so it forwards its arguments unchanged and adds no arity of its own |
30| `ApuIsVirtualAddressValid` | 4 | second argument `0x40`, `0x80`, `0x800`, `0x800`; the result byte is tested | 30| `ApuIsVirtualAddressValid` | 4 | second argument `0x40`, `0x80`, `0x800`, `0x800`; the result byte is tested |
31| `ApuMapVirtualAddress` | 4 | the same pointer and the same four constants as `ApuIsVirtualAddressValid`, one after the other; the 32-bit result is stored in a per-entry record | 31| `ApuMapVirtualAddress` | 4 | the same pointer and the same four constants as `ApuIsVirtualAddressValid`, one after the other; the 32-bit result is stored in a per-entry record |
32| `ApuMapApuAddress` | 2 | the argument is a 32-bit value read from those records; the result is tested for null, so it is a pointer | 32| `ApuMapApuAddress` | 2 | the argument is a 32-bit value read from those records; the result is tested for null, so it is a pointer |
@@ -39,14 +39,14 @@ turns such an address back into a pointer. That is an inference from the shapes;
39 39
40| Import | Sites | What the sites show | 40| Import | Sites | What the sites show |
41|---|---:|---| 41|---|---:|---|
42| `XApuConnect` | 1 | no argument loaded in the lines before the call was read | 42| `XApuConnect` | 1 | three arguments, the addresses of three `.data` globals (`0x149B69890`, `0x149B698A8`, `0x149B68960`), in `rcx`/`rdx`/`r8`; the result is tested as non-negative (`setns`) |
43| `XApuDisconnect` | 1 | first argument a handle read from a global, second `0x20`; the global is set to 0 right after | 43| `XApuDisconnect` | 1 | first argument a handle read from a global, second `0x20`; the global is set to 0 right after |
44| `XApuEnqueueCommand` | 4 | the same global handle, a pointer to a stack-built command, and 0 | 44| `XApuEnqueueCommand` | 4 | the same global handle, a pointer to a stack-built command, and 0 |
45| `XApuDequeueResult` | 1 | the same global handle and a second argument; the result is tested for a negative value | 45| `XApuDequeueResult` | 1 | the same handle global, and a 16-byte stack buffer as the second argument; a negative result jumps out, otherwise the record is read from buffer `+0x20`/`+0x24` |
46| `XApuGetResultCount` | 1 | no argument read | 46| `XApuGetResultCount` | 1 | the queue handle global and a second argument `0`; the result count is tested for zero and both branches are taken on it |
47| `XDspConnectWithMaximumStreamLimit` | 1 | fourth argument `0x80`; the result is compared with 0 and turned into a boolean that is true for 0 | 47| `XDspConnectWithMaximumStreamLimit` | 1 | fourth argument `0x80`; the result is compared with 0 and turned into a boolean that is true for 0 |
48| `XDspActivate` | 1 | the result is tested | 48| `XDspActivate` | 1 | a wrapper that swaps the incoming `r8`/`r9` before calling; the result is tested |
49| `XDspSubmitCommand` | 1 | two arguments, both taken from registers; not read further | 49| `XDspSubmitCommand` | 1 | a two-argument wrapper that swaps the incoming registers (`rcx` <- `rdx`, `rdx` <- old `rcx`) before calling, so the published order is the reverse of the wrapper's |
50| `XDspDeactivate`, `XDspDisconnect` | 1 tail jump each | no call | 50| `XDspDeactivate`, `XDspDisconnect` | 1 tail jump each | no call |
51 51
52`XApuEnqueueCommand` and `XApuDequeueResult` share one handle global, which `XApuDisconnect` clears: a command queue 52`XApuEnqueueCommand` and `XApuDequeueResult` share one handle global, which `XApuDisconnect` clears: a command queue