[PATCH 08/11] boot: bootm: set the imagemap from bootm_start()

Simon Glass sjg at chromium.org
Tue Oct 20 01:02:50 PDT 2026


On 2026-10-14T08:38:38, Daniel Golle <daniel at makrotopia.org> wrote:
> boot: bootm: set the imagemap from bootm_start()
>
> bootm_run_states() puts the imagemap back into the global images struct
> after bootm_start() has zeroed it, which leaves the invariant split
> across two functions: any later state that calls bootm_start() again
> drops the pointer, and BOOTM_STATE_RESTART is already close to doing so.
>
> Pass the imagemap to bootm_start() and let it set the field while it
> initialises the rest of the struct.
>
> Signed-off-by: Daniel Golle <daniel at makrotopia.org>
>
>  boot/bootm.c | 14 ++++----------
>  1 file changed, 4 insertions(+), 10 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>



More information about the openwrt-devel mailing list