[PATCH v3 04/46] x86: Move x86 zboot state into struct bootm_info
Simon Glass
sjg at chromium.org
Fri Dec 20 05:06:52 CET 2024
This structure is supposed to handle any type of booting
programmatically, i.e. without needing a command to be executed. Move
the x86-specific members into it and use it instead of
struct zboot_state. Provide a macro so access is possible without adding
lots of #ifdefs to the code.
This will allow the struct to be used for all four types of booting
(bootm, bootz, booti and zboot).
Call bootm_init() to init the state, to match other boot methods.
Note that some rationalisation could be performed on this. But this
is tricky since addresses are stored as strings in several places. Also
some strings combine multiple arguments into one. So to keep this task
somewhat manageable, we content ourselves with just getting everything
into the same struct
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
arch/x86/include/asm/zimage.h | 29 +----------------------------
arch/x86/lib/zimage.c | 4 ++--
include/bootm.h | 33 +++++++++++++++++++++++++++++++++
3 files changed, 36 insertions(+), 30 deletions(-)
Applied to sjg/master, thanks!
More information about the U-Boot
mailing list