[U-Boot] [RFC 01/10] ARM: crt0.S: clear the global data
Jeroen Hofstee
dasuboot at myspectrum.nl
Fri Jul 11 19:55:03 CEST 2014
Hi,
On 31-05-14 22:32, Jeroen Hofstee 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
>
this patch is superseded by http://patchwork.ozlabs.org/patch/368944/.
Regards,
Jeroen
More information about the U-Boot
mailing list