[U-Boot] [PATCH] ARM: provide a valid exception stack address for startup code
Simon Glass
sjg at chromium.org
Mon Jun 12 23:50:45 UTC 2017
On 8 June 2017 at 02:16, Lothar Waßmann <LW at karo-electronics.de> wrote:
> Create exception stack in IRAM if available to facilitate debugging of
> pre-relocation code by catching exceptions rather than stopping dead.
>
> Signed-off-by: Lothar Waßmann <LW at KARO-electronics.de>
> ---
> arch/arm/lib/vectors.S | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
But please see below.
>
> diff --git a/arch/arm/lib/vectors.S b/arch/arm/lib/vectors.S
> index f53b1e9..1019091 100644
> --- a/arch/arm/lib/vectors.S
> +++ b/arch/arm/lib/vectors.S
> @@ -117,7 +117,6 @@ data_abort:
> not_used:
> irq:
> fiq:
> -
What is this?
> 1:
> bl 1b /* hang and never return */
>
> @@ -126,7 +125,11 @@ fiq:
> /* IRQ stack memory (calculated at run-time) + 8 bytes */
> .globl IRQ_STACK_START_IN
> IRQ_STACK_START_IN:
> +#ifdef IRAM_BASE_ADDR
> + .word IRAM_BASE_ADDR + 0x20
> +#else
> .word 0x0badc0de
> +#endif
>
> @
> @ IRQ stack frame.
> --
> 2.1.4
>
More information about the U-Boot
mailing list