Browse Source

+ Set __stkptr value

git-svn-id: trunk@21702 -
pierre 13 years ago
parent
commit
0cf5b9abdb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/linux/mips/prt0.as

+ 2 - 0
rtl/linux/mips/prt0.as

@@ -54,6 +54,8 @@ _dynamic_start:
 _start:
 _start:
         /* load fp */
         /* load fp */
         move    $s8,$sp
         move    $s8,$sp
+        lui     $at,%hi(__stkptr)
+        sw      $s8,%lo(__stkptr)($at)
 
 
         /* align stack */
         /* align stack */
         li      $at,-8
         li      $at,-8