summaryrefslogtreecommitdiff
path: root/arch/nds32/cpu/n1213/start.S
diff options
context:
space:
mode:
authorKun-Hua Huang <kunhua@andestech.com>2015-08-24 14:52:35 +0800
committerTom Rini <trini@konsulko.com>2015-08-28 11:46:35 -0400
commit2e88bb28d8061286d2f1cabcac224df15b941b82 (patch)
treef61379fd60c3a45e33c2fbae96df449daf7294db /arch/nds32/cpu/n1213/start.S
parent14006a5671058bfe2f323beeec66448fce228adb (diff)
downloadu-boot-imx-2e88bb28d8061286d2f1cabcac224df15b941b82.zip
u-boot-imx-2e88bb28d8061286d2f1cabcac224df15b941b82.tar.gz
u-boot-imx-2e88bb28d8061286d2f1cabcac224df15b941b82.tar.bz2
NDS32: Generic Board Support and Unsupport
Add nds32 ag101p generic board support. Signed-off-by: Kun-Hua Huang <kunhua@andestech.com>
Diffstat (limited to 'arch/nds32/cpu/n1213/start.S')
-rw-r--r--arch/nds32/cpu/n1213/start.S7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/nds32/cpu/n1213/start.S b/arch/nds32/cpu/n1213/start.S
index 0d96c52..2f0b76c 100644
--- a/arch/nds32/cpu/n1213/start.S
+++ b/arch/nds32/cpu/n1213/start.S
@@ -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__