summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2026-02-24 16:29:36 -0600
committerTom Rini <trini@konsulko.com>2026-02-26 17:28:17 -0600
commit25680a5c4432372c19eb4f74026917efc9f3bef6 (patch)
tree632ce6ef26a23dbe6e9f9e30eea058bb0fbd0b2b /boot
parenta89874e607344aef602bfd13cdca1d0ccc23d427 (diff)
bloblist: Rework bloblist_init and bloblist_maybe_initCHECK/bloblist-not-found
With bloblist, we need to both see if one already exists as well as create one if it does not. However, the current implementation leads to odd cases where we attempt to create a bloblist before this is possible and have things be overly complicated when we are given one to work with. This reworks things to instead have a bloblist_exists function, which as the name implies checks for an existing bloblist. This is used in the case of booting, to see if we have one and in turn if we have a device tree there as well as in the bloblist_init function to see if we need to do anything. In practical details, we move the logic from bloblist_init that was checking for a bloblist to the new bloblist_exists function and then can clarify the logic as it is much easier to state when we know we do not have one rather than all the ways we might have one. Then we have the locations that set gd->bloblist now also set the GD_FLG_BLOBLIST_READY flag. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'boot')
0 files changed, 0 insertions, 0 deletions