mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
Preliminary fixes for boot/libultra (#1032)
* Preliminary fixes * Missed a NULL
This commit is contained in:
parent
09f0dc84b8
commit
982e7be1f7
31 changed files with 68 additions and 88 deletions
16
asm/entry.s
16
asm/entry.s
|
@ -7,21 +7,23 @@
|
|||
|
||||
.section .text
|
||||
|
||||
.set BOOT_STACK_SIZE, 0x400
|
||||
|
||||
glabel entrypoint # 0x80000400
|
||||
lui $t0, %hi(_bootSegmentBssStart) # $t0, 0x8001
|
||||
addiu $t0, %lo(_bootSegmentBssStart) # addiu $t0, $t0, 0x2370
|
||||
li $t1, %lo(_bootSegmentBssSize) # li $t1, 0x4A30
|
||||
lui $t0, %hi(_bootSegmentBssStart)
|
||||
addiu $t0, %lo(_bootSegmentBssStart)
|
||||
li $t1, %lo(_bootSegmentBssSize)
|
||||
.L8000040C:
|
||||
addi $t1, $t1, -8
|
||||
sw $zero, ($t0)
|
||||
sw $zero, 4($t0)
|
||||
bnez $t1, .L8000040C
|
||||
addi $t0, $t0, 8
|
||||
lui $t2, %hi(bootproc) # $t2, 0x8000
|
||||
lui $sp, %hi(gMainThread) # $sp, 0x8001
|
||||
addiu $t2, %lo(bootproc) # addiu $t2, $t2, 0x0498
|
||||
lui $t2, %hi(bootproc)
|
||||
lui $sp, %hi(sBootThreadStack + BOOT_STACK_SIZE)
|
||||
addiu $t2, %lo(bootproc)
|
||||
jr $t2
|
||||
addiu $sp, %lo(gMainThread) # addiu $sp, $sp, 0x2D60
|
||||
addiu $sp, %lo(sBootThreadStack + BOOT_STACK_SIZE)
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue