]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
use CONFIG_SYS_INIT_SP_ADDR or CONFIG_SPL_STACK for initial SP depending on CONFIG_SP...
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 24 Jun 2013 09:48:37 +0000 (11:48 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 24 Jun 2013 09:48:37 +0000 (11:48 +0200)
arch/arm/cpu/armv7/lowlevel_init.S

index 0d45528e999ee021799bc3556ca0059d1df5ad9b..d7a91fcb6bee225aeb86f82a9d1b064dc87a47eb 100644 (file)
@@ -35,9 +35,12 @@ ENTRY(lowlevel_init)
        /*
         * Setup a temporary stack
         */
+#ifndef CONFIG_SPL_BUILD
        ldr     sp, =CONFIG_SYS_INIT_SP_ADDR
+#else
+       ldr     sp, =CONFIG_SPL_STACK
+#endif
        bic     sp, sp, #7 /* 8-byte alignment for ABI compliance */
-
        /*
         * Save the old lr(passed in ip) and the current lr to stack
         */