]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootstage: Allow counting memory without strings
authorSimon Glass <sjg@chromium.org>
Mon, 21 Oct 2024 08:19:28 +0000 (10:19 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 25 Oct 2024 20:22:24 +0000 (14:22 -0600)
commit48008ec71148c0749ff34f7036a0278d4d92ae7b
tree09608c31044efb9243c4c8854862ad0f8a091d4b
parent040ab117c79795ff2a13f70c3c3847fa66db7d04
bootstage: Allow counting memory without strings

The bootstage array includes pointers to strings but not the strings
themselves. The strings are added when stashing, but including them in
the size calculation gives an inflated view of the amount of space used
by the array.

Update this function so it can return the amount of memory used by the
bootstage structures themselves, without the strings which they point
to.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/board_f.c
common/bootstage.c
include/bootstage.h