[PATCH v2 26/35] global_data: Reduce size of early-malloc vars

Tom Rini trini at konsulko.com
Fri Aug 23 15:34:50 CEST 2024


On Wed, Aug 21, 2024 at 10:19:18AM -0600, Simon Glass wrote:

> The early malloc region is normally quite small and is certainly less
> than 4GB, so use a 32-bit value for the limit and pointer. Update the
> comment for clarity while we are here.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
> (no changes since v1)
> 
>  arch/arm/lib/bdinfo.c             | 2 +-
>  common/board_r.c                  | 2 +-
>  common/malloc_simple.c            | 7 ++++---
>  common/spl/spl.c                  | 4 ++--
>  include/asm-generic/global_data.h | 6 +++---
>  5 files changed, 11 insertions(+), 10 deletions(-)

This breaks booting on am64x_evm_a53 which is an odd platform that does
SPL->SPL->U-Boot.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240823/12664aaf/attachment.sig>


More information about the U-Boot mailing list