Match SD disk-info success return and restore its epilogue extent #481
Reference in New Issue
Block a user
Delete Branch "agent/bittle/sd-disk-info-epilogue"
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?
Original-binary evidence
pfd_sddrv_get_disk_infobegins at 0x815EAC64. Its recorded size 0x180 ends at 0x815EADE4, immediately aftermtlr r0at 0x815EADE0. The original DOL then contains:addi r1, r1, 0x20blrpfd_sddrv_init_drv_tblSet the verified extent to 0x188, without moving any split or overlapping the next symbol. The source also needs an explicit
return 0on its successful path: the original emitsli r3, 0there, whereas returning the known-zero localresultremoved that instruction. Error returns remain unchanged.Validation
Fresh baseline/report: main
d613662c. Fetched again immediately before opening; unchanged. Published blobs match tested files.pfd_sddrv_get_disk_info: 98/98 instructions, zero ctxdiff differences, objdiff 100%.ninja all_source progress build/43U/report.json build/43U/okpasses. DOL SHA-1 26116613f624061ba99c8d1a299aaa6efa85670d.git diff --checkpass.One unit, one genuine source correction and its evidenced symbol extent. No assembly, padding objects or original binaries committed. Merge is left to Cole.
Reviewed and merged. Confirmed in build/43U/asm:
addi r1, r1, 0x20/blrat 0x815EADE4/E8 follow the old symbol end and precede pfd_sddrv_init_drv_tbl, so 0x188 is right; thereturn 0change is the honest source form for the original'sli r3, 0. Clean rebuild: DOL sha1 unchanged, sd_drv 20/26 exact. FYI I scanned every asm file for the same truncated-epilogue pattern (.endfnright aftermtlrwithaddi r1, r1following) and this and PFSYS_TimeStamp were the only two, so that class is done. Good next targets for you: units with 100% code whose data is genuinely wrong, or sd_drv's remaining six functions.