diff --git a/asm/entrypoint.s b/asm/entrypoint.s index 0e10d93f..ebe6ff30 100644 --- a/asm/entrypoint.s +++ b/asm/entrypoint.s @@ -10,13 +10,11 @@ .section .text -# .word __BSS_SECTION_SIZE # Should equal 0x41490 - glabel entrypoint /* 001000 80000400 3C08800F */ lui $t0, %hi(gBssSectionStart) # $t0, 0x800f -/* 001004 80000404 3C090004 */ lui $t1, (0x41490 >> 16) # lui $t1, 4 +/* 001004 80000404 3C090004 */ lui $t1, %hi(__BSS_SECTION_SIZE) # lui $t1, 4 /* 001008 80000408 2508BF60 */ addiu $t0, %lo(gBssSectionStart) # addiu $t0, $t0, -0x40a0 -/* 00100C 8000040C 35291490 */ ori $t1, (0x41490 & 0xFFFF) # ori $t1, $t1, 0x1490 +/* 00100C 8000040C 35291490 */ ori $t1, %lo(__BSS_SECTION_SIZE) # ori $t1, $t1, 0x1490 .L80000410: /* 001010 80000410 2129FFF8 */ addi $t1, $t1, -8 /* 001014 80000414 AD000000 */ sw $zero, ($t0) diff --git a/src/unknown_001050.c b/src/unknown_001050.c index c7296133..b4cdd6bd 100644 --- a/src/unknown_001050.c +++ b/src/unknown_001050.c @@ -135,6 +135,8 @@ void audio_init(u32 arg0){ u32 seq_max_len; u32 tmp2; audioMgrConfig audConfig; + + //*((s32*)0x803FFFFC) = 0xDEADBEEF; seq_max_len = 0; alHeapInit(&gALHeap, gBssSectionStart, 0x00029D88); diff --git a/tools/python/generate_ld.py b/tools/python/generate_ld.py index 568a1df7..220f4d04 100644 --- a/tools/python/generate_ld.py +++ b/tools/python/generate_ld.py @@ -134,7 +134,7 @@ class GenerateLD: self.gen_newline() def gen_bss_section(self): - self.gen_line('__BSS_SECTION_SIZE = SIZEOF(.bss.noload);') + self.gen_line('__BSS_SECTION_SIZE = SIZEOF(.bss.noload) - 0x10;') self.gen_newline() self.gen_line('.bss.noload . (NOLOAD): SUBALIGN(4)') self.gen_open_block()