Skip to content

Match kernel#83

Open
inspectredc wants to merge 8 commits intogcsmith:mainfrom
inspectredc:more-kernel
Open

Match kernel#83
inspectredc wants to merge 8 commits intogcsmith:mainfrom
inspectredc:more-kernel

Conversation

@inspectredc
Copy link
Contributor

@inspectredc inspectredc commented Mar 6, 2026

This matches the rest of kernel apart from the single nonmatching in fx.c(now matched) and libultra. A lot of the last few files were pretty connected to each other and so I decided to group them together and was left with only 3 more kernel functions left so added matches for those as well.

This also links all the BSS of the non-libultra kernel. The only weird issue I came across was with gSchedStack where it appears like entrypoint.s loads the stack at 0x802C3C90 which is 0xE8 into the sched stack, but it doesn't make sense to me to have 0xE8 padding before the start of gSchedStack and then have gSchedStack be a size of 0x1F18 (instead of 0xE8). I'm not really sure why entrypoint would be using the sched stack either so sticking to what makes more sense to me currently

Copy link
Contributor

@queueRAM queueRAM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work. I'm not sure what to make of the stack sizes and overlaps and would need more time to study it. Just had a couple header questions

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you also add to this file prototypes for uvEnvProps, uvEnvProps2, uvEnvFunc and func_80218700?

s32 D_802C5FC0;

#pragma GLOBAL_ASM("asm/nonmatchings/kernel/code_2FE40/_uvTerraDraw.s")
extern u8 D_80263060[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move this extern u8 D_80263060[] to code_58E0.h?

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