[PATCH v2 14/21] bootm: Drop arguments from do_bootm_states()

Tom Rini trini at konsulko.com
Thu Dec 14 18:51:29 CET 2023


On Thu, Dec 14, 2023 at 09:50:23AM -0700, Simon Glass wrote:

> Use the bootm_info struct to hold the information required by bootm.
> 
> Now that none of the functions called from do_bootm_states() needs an
> argv[] list, change the arguments of do_bootm_states() as well. Take
> care to use the same value for boot_progress even though it is a little
> inconsistent.
> 
> For booti make sure it only uses argv[] and argc at the top of the
> function, so we can eventually refactor to remove these parameters.
> 
> With bootm, some OSes need access to the arguments provided to the
> command, so set these up in the bootm_info struct, for bootm only.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20231214/7bf7ba27/attachment.sig>


More information about the U-Boot mailing list