[U-Boot] [PATCH] arm64: Handle arbitrary CONFIG_SYS_MALLOC_F_LEN values

Simon Glass sjg at chromium.org
Thu Jul 23 22:18:48 CEST 2015


On 22 July 2015 at 16:44, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Thierry Reding <treding at nvidia.com>
>
> The encoding of the sub instruction used to handle CONFIG_SYS_MALLOC_F_LEN
> can only accept certain values, and the set of acceptable values differs
> between the AArch32 and AArch64 instructions sets. The default value of
> CONFIG_SYS_MALLOC_F_LEN works with either ISA. Tegra uses a non-default
> value that can only be encoded in the AArch32 ISA. Fix the AArch64 crt0
> assembly so it can handle completely arbitrary values.
>
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> [twarren: trimmed Thierry's patch to remove changes already present]
> Signed-off-by: Tom Warren <twarren at nvidia.com>
> [swarren, cleaned up patch, wrote description, re-wrote subject]
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
>  arch/arm/lib/crt0_64.S | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list