Skip to content
Commit 9f22f070 authored by Sean Anderson's avatar Sean Anderson Committed by Tom Rini
Browse files

malloc: Don't statically initialize av_ if using malloc_init



When we enable malloc_init, there is no need to statically initialize
av_, since we are going to do it manually. This lets us move av_ to
.bss, saving around 1-2k of data (depending on the pointer size).

cALLOc must be adjusted to not access top before malloc_init.

While we're at it, rename/reword the Kconfig to better describe what
this option does.

Signed-off-by: default avatarSean Anderson <sean.anderson@seco.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 4ace2c5e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment