cleanup(iplBS2Manager): name tick/update/abort/restart flags #857

Merged
coah80 merged 1 commits from cleanup/iplBS2Manager-flags into main 2026-10-02 19:03:19 +00:00
coah80 commented 2026-10-02 19:00:07 +00:00 (Migrated from github.com)

Summary

Readable renames for the four bool flags at 0x0C–0x0F in ipl::bs2::Manager, named from call-site usage:

old new
unk_0x0C mbTickEnabled
unk_0x0D mbUpdateRequested
unk_0x0E mbAbortRequested
unk_0x0F mbRestartRequested

Evidence:

  • mbTickEnabled: gates BS2Tick / splash / exec; cleared on reserve / abort / diag boot; set again after a successful restart path
  • mbUpdateRequested: set in startUpdate(), consumed once in execTick to call BS2StartUpdate
  • mbAbortRequested: set in abort(), consumed in execTick to abort/stop the state machine
  • mbRestartRequested: set in restart(), cleared when NAND is no longer full and BS2RestartStateMachine runs

Verification

  • Unit: system/iplBS2Manager.cpp (Matching)
  • Before objdiff: fuzzy 100% / code 100% / funcs 100%
  • After objdiff: fuzzy 100% / code 100% / funcs 100%
  • ninja all_source + build/43U/ok
  • DOL sha1: 26116613f624061ba99c8d1a299aaa6efa85670d

Do not merge — waiting on reviewer.

## Summary Readable renames for the four bool flags at `0x0C`–`0x0F` in `ipl::bs2::Manager`, named from call-site usage: | old | new | | --- | --- | | `unk_0x0C` | `mbTickEnabled` | | `unk_0x0D` | `mbUpdateRequested` | | `unk_0x0E` | `mbAbortRequested` | | `unk_0x0F` | `mbRestartRequested` | Evidence: - `mbTickEnabled`: gates `BS2Tick` / splash / exec; cleared on reserve / abort / diag boot; set again after a successful restart path - `mbUpdateRequested`: set in `startUpdate()`, consumed once in `execTick` to call `BS2StartUpdate` - `mbAbortRequested`: set in `abort()`, consumed in `execTick` to abort/stop the state machine - `mbRestartRequested`: set in `restart()`, cleared when NAND is no longer full and `BS2RestartStateMachine` runs ## Verification - Unit: `system/iplBS2Manager.cpp` (Matching) - Before objdiff: fuzzy 100% / code 100% / funcs 100% - After objdiff: fuzzy 100% / code 100% / funcs 100% - `ninja all_source` + `build/43U/ok` - DOL sha1: `26116613f624061ba99c8d1a299aaa6efa85670d` Do not merge — waiting on reviewer.
coah80 commented 2026-10-02 19:03:16 +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.