[codex] Match RVL SDK OS exception jump #191

Merged
coah80 merged 1 commits from agent/worker59-os into main 2026-09-22 08:31:23 +00:00
coah80 commented 2026-09-22 08:30:43 +00:00 (Migrated from github.com)

What changed

Matches libs/RVL_SDK/src/os/OS.c by giving the debugger jump an explicit target label at the original OSExceptionVector offset. This preserves the existing inline-assembly structure while reproducing the original object relocation for __OSDBJump.

Validation

  • OS unit objdiff: code 5084/5084 (100%), data 1240/1240 (100%), functions 21/21 (100%), complete/link 100%.
  • __OSDBJump: 1/1 instructions, diffs 0.
  • pool_diff.py: POOL IDENTICAL up to 29 (mine=29 base=29).
  • Focused object build passed with /home/cole/projects/tests/.venv/bin/ninja -C . build/43U/src/libs/RVL_SDK/src/os/OS.o.
  • Full 43U link completed and the live report was regenerated. The repository-wide SHA check remains failing because other units are still incomplete; this build produced 5e346eedf01e53b7b8dfce16d856f23ca94c1661 versus the final target 26116613f624061ba99c8d1a299aaa6efa85670d.
  • git diff --check passed.

Note

Match RVL SDK OS exception jump to internal __OSDBJumpTarget

Redirects the __OSDBJUMPSTART debug jump stub from the external integrator hook address to the SDK's internal context-save entry point. Adds the __OSEVStart label in the exception-save assembly at the CTR-save instruction, exposing __OSDBJumpTarget as an alternate entry that continues through the remaining XER, SRR0, and SRR1 saves. Risk: the branch in __OSDBJUMPSTART now targets __OSEVStart in OS.c; integrators relying on the old external hook address will no longer receive control.

Macroscope summarized 13a8c1f.

## What changed Matches `libs/RVL_SDK/src/os/OS.c` by giving the debugger jump an explicit target label at the original `OSExceptionVector` offset. This preserves the existing inline-assembly structure while reproducing the original object relocation for `__OSDBJump`. ## Validation - OS unit objdiff: code `5084/5084` (100%), data `1240/1240` (100%), functions `21/21` (100%), complete/link `100%`. - `__OSDBJump`: `1/1` instructions, `diffs 0`. - `pool_diff.py`: `POOL IDENTICAL up to 29 (mine=29 base=29)`. - Focused object build passed with `/home/cole/projects/tests/.venv/bin/ninja -C . build/43U/src/libs/RVL_SDK/src/os/OS.o`. - Full 43U link completed and the live report was regenerated. The repository-wide SHA check remains failing because other units are still incomplete; this build produced `5e346eedf01e53b7b8dfce16d856f23ca94c1661` versus the final target `26116613f624061ba99c8d1a299aaa6efa85670d`. - `git diff --check` passed. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Match RVL SDK OS exception jump to internal `__OSDBJumpTarget` > Redirects the `__OSDBJUMPSTART` debug jump stub from the external integrator hook address to the SDK's internal context-save entry point. Adds the `__OSEVStart` label in the exception-save assembly at the CTR-save instruction, exposing `__OSDBJumpTarget` as an alternate entry that continues through the remaining XER, SRR0, and SRR1 saves. Risk: the branch in `__OSDBJUMPSTART` now targets `__OSEVStart` in [OS.c](https://github.com/coah80/wii-ipl/pull/191/files#diff-0f5ff9fe8f9bc7526869f2adeb981777aa9ef753f774cf238413ac39bc2900b0); integrators relying on the old external hook address will no longer receive control. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 13a8c1f.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.