commit | a036dbb123524b10edf70c44521062c794652d9f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Oct 21 10:19:28 2024 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Oct 25 14:22:24 2024 -0600 |
tree | 09608c31044efb9243c4c8854862ad0f8a091d4b | |
parent | 78be6409e5428f544679784177c66e4a7a9c4437 [diff] |
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>