]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm64: Handle arbitrary CONFIG_SYS_MALLOC_F_LEN values
authorThierry Reding <treding@nvidia.com>
Wed, 22 Jul 2015 22:44:32 +0000 (16:44 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:50:47 +0000 (13:50 +0200)
commitfffc737a6fc3fa15e898b919e260973a8aa61fb6
tree08b23febf6770051a51c6a1d29761ad9675be082
parent1270348faf1e06e81f975b8f32b7b78972e35ffc
arm64: Handle arbitrary CONFIG_SYS_MALLOC_F_LEN values

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@nvidia.com>
[twarren: trimmed Thierry's patch to remove changes already present]
Signed-off-by: Tom Warren <twarren@nvidia.com>
[swarren, cleaned up patch, wrote description, re-wrote subject]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/lib/crt0_64.S