Skip to content

Make reset reliable with SDK-owned stdio reinitialization - #71

Open
fjtrujy wants to merge 1 commit into
ps2dev:masterfrom
fjtrujy:fix/reset-robust-sdk-libcglue
Open

fjtrujy wants to merge 1 commit into
ps2dev:masterfrom
fjtrujy:fix/reset-robust-sdk-libcglue

Conversation

@fjtrujy

@fjtrujy fjtrujy commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Alternative to #70, incorporating its reset fixes without mirroring newlib-nano's private struct _reent layout in ps2link.

ps2sdk #969 is merged. After ExecPS2(), crt0 calls libcglue's __locks_init(), which now resets stdio state for both full newlib and newlib-nano. This removes ps2link's duplicate struct and direct _impure_ptr write.

The reset fixes originate from @kaisa847's #70 and are credited in the single squashed commit. This is an alternative to #70, not an additional change to merge alongside it.

Validation: Full local EE/IOP/packed-ELF build passes with -Werror. Hardware regression testing still needs ps2sdk rebuilt at cf9557d or later; the locally installed libcglue predates #969.

Closes #70

Apply the reset fixes from ps2dev#70 while relying on ps2dev/ps2sdk#969 to reset newlib-nano stdio state during startup after ExecPS2.

Co-authored-by: kaisa847 <[email protected]>
@fjtrujy
fjtrujy marked this pull request as ready for review November 18, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant