match(fa): pfd_sddrv_get_total_sectors byte-identical #983

Merged
coah80 merged 1 commits from agent/grok/decomp-worker-1/sd_drv into main 2026-10-02 22:55:55 +00:00
coah80 commented 2026-10-02 22:54:57 +00:00 (Migrated from github.com)

Summary

  • pfd_sddrv_get_total_sectors is 80/80, structural 0, exact 0 (320/320 bytes). On current main it was already 80/80 with 6 register diffs: the literal 1 was in r5 and (max_multiplier - 9) was a fresh temp.
  • Folding that subtract back into max_multiplier before the u16 shift puts the count in r3 and the 1 in r0.
  • Other functions in sd_drv.c are unchanged. DOL not rebuilt.

Test plan

  • 43U object compare for libs/RVL_SDK/src/fa/driver/sd_drv.o shows pfd_sddrv_get_total_sectors equal to retail
## Summary - `pfd_sddrv_get_total_sectors` is 80/80, structural 0, exact 0 (320/320 bytes). On current main it was already 80/80 with 6 register diffs: the literal `1` was in r5 and `(max_multiplier - 9)` was a fresh temp. - Folding that subtract back into `max_multiplier` before the `u16` shift puts the count in r3 and the `1` in r0. - Other functions in `sd_drv.c` are unchanged. DOL not rebuilt. ## Test plan - [ ] 43U object compare for `libs/RVL_SDK/src/fa/driver/sd_drv.o` shows `pfd_sddrv_get_total_sectors` equal to retail
coah80 commented 2026-10-02 22:55:52 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.