[U-Boot] [RFC 01/10] ARM: crt0.S: clear the global data

Tim Harvey tharvey at gateworks.com
Tue Jun 3 17:36:37 CEST 2014


On Sat, May 31, 2014 at 1:32 PM, Jeroen Hofstee <jeroen at myspectrum.nl> wrote:
> NOTE: smdk5420 snow smdkv310 apf27 arndale origen vpac270_ond_256 smdk5250
> don't have a memset available.
> ---
>  arch/arm/lib/crt0.S | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S
> index dfc2de9..52b6f74 100644
> --- a/arch/arm/lib/crt0.S
> +++ b/arch/arm/lib/crt0.S
> @@ -70,6 +70,12 @@ ENTRY(_main)
>         sub     sp, sp, #GD_SIZE        /* allocate one GD above SP */
>         bic     sp, sp, #7      /* 8-byte alignment for ABI compliance */
>         mov     r9, sp          /* GD is above SP */
> +
> +       mov     r0, r9          /* Clear the global data */
> +       mov     r1, #0
> +       mov     r2, #GENERATED_GBL_DATA_SIZE
> +       bl      memset
> +
>         mov     r0, #0
>         bl      board_init_f
>
> --

Acked-by: Tim Harvey <tharvey at gateworks.com>

This resolves the issue I encountered and reported with IMX6 SPL.

Thanks,

Tim


More information about the U-Boot mailing list