]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/nds32/cpu/n1213/start.S
NDS32: Generic Board Support and Unsupport
[karo-tx-uboot.git] / arch / nds32 / cpu / n1213 / start.S
index 0d96c52cd55ac345e362069fff59f919af20d670..2f0b76c04cf976edd00eafc1d40adbb90c1071ca 100644 (file)
@@ -153,8 +153,11 @@ turnoff_wtdog:
  * $sp must be 8-byte alignment for ABI compliance.
  */
 call_board_init_f:
-       li      $sp, CONFIG_SYS_INIT_SP_ADDR
-       li      $r0, 0x00000000
+       li              $sp, CONFIG_SYS_INIT_SP_ADDR
+       li              $r10, GD_SIZE   /* get GD size */
+       sub             $sp, $sp, $r10  /* GD start addr */
+       move    $r10, $sp
+       li              $r0, 0x00000000
 
 #ifdef __PIC__
 #ifdef __NDS32_N1213_43U1H__