decomp(kbd): reconstruct asynchronous LED dispatch and completion #993
Reference in New Issue
Block a user
Delete Branch "agent/bittle/kbd-async-reconstruction"
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?
Reconstruction
Replace raw byte-offset command-buffer casts with indexed typed command accesses. Recover separate channel views for validation, reservation and dispatch. In completion, retain the callback argument as the source of the unsigned dispatch index, distinct from the signed initial lookup. Indices originate from the bounded 0..11 slot reservation; channel is checked below4. Signed declaration choices are inferred from natural C lowering, not uniquely recovered declarations.
The existing callback-versus-cleared-device comparison is preserved, not newly introduced. Interrupt boundaries, reservation, callback registration and error translation remain in place. The obsolete flag helper is removed only after both callers use direct typed accesses.
Independent validation
Rebased and rebuilt on 654c65dd272216f5f9bf81623a2b229e101760cd; tested tree
17a1c8a82b.Partial reconstruction only; no new exact function, linking or configuration change. User requested decompilation first. No merge performed or requested by this author.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.