[U-Boot] [PATCH 2/4] malloc_simple: Allow malloc_simple to be used with non stack RAM

Simon Glass sjg at chromium.org
Thu Feb 5 04:04:52 CET 2015


On 4 February 2015 at 05:05, Hans de Goede <hdegoede at redhat.com> wrote:
> Before this patch malloc_simple would always allocate a chunk of RAM from
> the stack. This commit adds a CONFIG_SYS_MALLOC_F_BASE define, which when
> set directly specifies the memory address to use for the heap with
> malloc_simple.
>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> ---
>  arch/arm/lib/crt0.S | 2 +-
>  common/board_f.c    | 4 ++++
>  common/spl/spl.c    | 3 +++
>  3 files changed, 8 insertions(+), 1 deletion(-)

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


More information about the U-Boot mailing list