Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coreinit: Add some missing field to the OSThread struct #319

Merged
merged 1 commit into from
Jun 4, 2023

Conversation

Maschell
Copy link
Contributor

@Maschell Maschell commented May 1, 2023

Most of the fields are coming from decaf.

Changes compared to decafs struct:

  • the eh_* fields have been extracted into a seperate struct. The thread init function does a memset for 0x1D8 bytes at offset 0x3A0, this indicated an own struct. First 0x68 bytes are still unknown.
  • stackSyncObjAllowed has been added (but is only used on debug builds, and only for logging)
  • The final 20 bytes (now defined as reserved) are cleared by the thread init functions but never used. These are probably just unused reserved bits.

@Maschell Maschell force-pushed the threads branch 4 times, most recently from a9d2053 to 9a06a5e Compare May 1, 2023 22:59
@WinterMute WinterMute merged commit 5f42c2c into devkitPro:master Jun 4, 2023
@Maschell Maschell deleted the threads branch June 18, 2023 14:12
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.

2 participants