nios2: remove CONFIG_SYS_INIT_SP macro
[oweals/u-boot.git] / arch / nios2 / cpu / start.S
index 8758e7e847a27112c02dd8fe86225913daad4b7c..bb86bbf40c4e2fa7109be59d306e51f80f703a52 100644 (file)
@@ -81,6 +81,7 @@ _cur: movhi   r5, %hi(_cur - _start)
        mov     r8, r4
        movhi   r5, %hi(_start)
        ori     r5, r5, %lo(_start)     /* r5 <- linked _start */
+       mov     sp, r5          /* initial stack below u-boot code */
        beq     r4, r5, 3f
 
        movhi   r6, %hi(CONFIG_SYS_MONITOR_LEN)
@@ -100,8 +101,6 @@ _cur:       movhi   r5, %hi(_cur - _start)
 _reloc:
 
        /* STACK INIT -- zero top two words for call back chain. */
-       movhi   sp, %hi(CONFIG_SYS_INIT_SP)
-       ori     sp, sp, %lo(CONFIG_SYS_INIT_SP)
        addi    sp, sp, -8
        stw     r0, 0(sp)
        stw     r0, 4(sp)