Use $t9 for indirect calls from asm to C as PIC ABI requires.
This commit is contained in:
parent
0d8f04cd83
commit
6f4a19f59f
3 changed files with 11 additions and 7 deletions
|
@ -116,10 +116,10 @@ bsscont:
|
|||
bne $t3, $0, bsscont
|
||||
nop
|
||||
|
||||
lui $t1, %hi(grub_main)
|
||||
addiu $t1, %lo(grub_main)
|
||||
lui $t9, %hi(grub_main)
|
||||
addiu $t9, %lo(grub_main)
|
||||
|
||||
lui $sp, %hi(GRUB_MACHINE_MEMORY_STACK_HIGH)
|
||||
jr $t1
|
||||
jr $t9
|
||||
addiu $sp, $sp, %lo(GRUB_MACHINE_MEMORY_STACK_HIGH)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue