InstallNetProbe: card.resource stubs list every scratch register the call may destroy (#70, C of 3) - #73
Merged
Conversation
…call may destroy installnetprobe.c's three card.resource stubs (OwnCard, ReleaseCard, CopyTuple) passed their argument registers as asm inputs only. The library ABI lets every LVO destroy d0/d1/a0/a1. This was REAL at main 66e0bf5. probe_own_card loads a1 = &handle (0x968) for OwnCard (jsr -6 at 0x96e). On the owned path, the first CopyTuple(0x20) (jsr -72 at 0x98e) was issued without reloading a1, so it used whatever OwnCard left there. After the change, 0x986 is `lea 0x18,a1` before the CopyTuple, which reloads the handle. The other two stubs were latent. Each argument register is now a "+r" operand; unused scratch registers remain clobbers. The #70 scanner no longer flags installnetprobe.c. With #71 and #72 this closes the 16 shipped sites in #70. Part of #70 (shipped sites, PR C of 3). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #70, shipped-site fixes, PR C of 3:
src/tools/installnetprobe.c→ InstallNetProbe. Independent of #71 (merged) and #72.The three card.resource stubs (OwnCard -6, ReleaseCard -12, CopyTuple -72) passed their argument registers as asm inputs only.
REAL today (main 66e0bf5), owned-card path:
After:
Change: each argument register becomes a
"+r"operand, with a comment at the stubs and a one-line CHANGELOG entry.Proof:
tools/ci.sh hostin CI conditions: rc 0, 464/464.With #71 and #72 this closes all 16 shipped sites in #70.
🤖 Generated with Claude Code