Message ID | 1504664087-26473-4-git-send-email-kever.yang@rock-chips.com |
---|---|
State | Superseded |
Delegated to: | Philipp Tomsich |
Headers | show |
Series | rockchip: add tpl and OPTEE support for rk3229 | expand |
On 5 September 2017 at 20:14, Kever Yang <kever.yang@rock-chips.com> wrote: > 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 | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass <sjg@chromium.org>
> 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> > Reviewed-by: Simon Glass <sjg@chromium.org> > --- > > arch/arm/lib/crt0.S | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> 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> > Reviewed-by: Simon Glass <sjg@chromium.org> > Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> > --- > > arch/arm/lib/crt0.S | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S index fa81317..3c1c603 100644 --- a/arch/arm/lib/crt0.S +++ b/arch/arm/lib/crt0.S @@ -70,7 +70,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)
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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)