X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=arch%2Fnds32%2Fcpu%2Fn1213%2Fstart.S;h=2f0b76c04cf976edd00eafc1d40adbb90c1071ca;hb=313aa1077312c61255502365095fc4df144b8847;hp=34db79dd5cbf0389ac0a18b907ad65081ccf0443;hpb=3be2bdf5dc69b3142c1162a59bc67191c9077567;p=karo-tx-uboot.git diff --git a/arch/nds32/cpu/n1213/start.S b/arch/nds32/cpu/n1213/start.S index 34db79dd5c..2f0b76c04c 100644 --- a/arch/nds32/cpu/n1213/start.S +++ b/arch/nds32/cpu/n1213/start.S @@ -13,7 +13,6 @@ #include #include #include -#include /* * Jump vector table for EVIC mode @@ -154,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__