]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: add a separate stack for TPL
authorKever Yang <kever.yang@rock-chips.com>
Tue, 2 Apr 2019 12:41:21 +0000 (20:41 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 8 May 2019 09:34:12 +0000 (17:34 +0800)
TPL stack may different from SPL and sys stack, add support for
separate one when the board defines it.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/lib/crt0.S

index fe312db69068b4e0d41eb0d9bafccc3b0e05b248..30fba20e1babf75d87e3d39c2aef7f7c380f54fb 100644 (file)
@@ -67,7 +67,9 @@ ENTRY(_main)
  * Set up initial C runtime environment and call board_init_f(0).
  */
 
-#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK)
+#if defined(CONFIG_TPL_BUILD) && defined(CONFIG_TPL_NEEDS_SEPARATE_STACK)
+       ldr     r0, =(CONFIG_TPL_STACK)
+#elif defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK)
        ldr     r0, =(CONFIG_SPL_STACK)
 #else
        ldr     r0, =(CONFIG_SYS_INIT_SP_ADDR)