|
@@ -128,6 +128,11 @@ _start:
|
|
|
.globl main_stub
|
|
|
.type main_stub,@function
|
|
|
main_stub:
|
|
|
+ /* load fp */
|
|
|
+ move $s8,$sp
|
|
|
+ /* set __stkptr value to $s8 */
|
|
|
+ lui $v0,%hi(__stkptr)
|
|
|
+ sw $s8,%lo(__stkptr)($v0)
|
|
|
lui $v0,%hi(__fpc_ret_sp)
|
|
|
sw $sp,%lo(__fpc_ret_sp)($v0)
|
|
|
lui $v0,%hi(__fpc_ret_ra)
|