1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-01-26 02:27:02 +00:00

Small cleanup of cleararena (bootclear) (#1999)

* cleararena use boot end

* cleararena -> bootclear
This commit is contained in:
Derek Hensley 2024-07-21 12:22:54 -07:00 committed by GitHub
parent e1dc4cf448
commit 2361a33307
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,15 +7,15 @@ STACK(sIdleThreadStack, 0x400);
StackEntry sIdleThreadInfo;
STACK(sBootThreadStack, BOOT_STACK_SIZE);
void cleararena(void) {
bzero(_dmadataSegmentStart, osMemSize - OS_K0_TO_PHYSICAL(_dmadataSegmentStart));
void bootclear(void) {
bzero(_bootSegmentEnd, osMemSize - OS_K0_TO_PHYSICAL(_bootSegmentEnd));
}
void bootproc(void) {
StackCheck_Init(&sBootThreadInfo, sBootThreadStack, STACK_TOP(sBootThreadStack), 0, -1, "boot");
osMemSize = osGetMemSize();
cleararena();
bootclear();
__osInitialize_common();
__osInitialize_autodetect();