]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: zimage: Use a state struct to hold the state
authorSimon Glass <sjg@chromium.org>
Sat, 5 Sep 2020 20:50:38 +0000 (14:50 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:07 +0000 (11:27 +0800)
commite81483748835df1f45be73a84eb13ce9592f8300
tree110c4a5f3d9ea6dcea150ea18c22d3c8c000a7cd
parent6e04cb76dba579cf73f22d19e654dade1a17b5c0
x86: zimage: Use a state struct to hold the state

At present the 'zboot' command does everything in one go. It would be
better if it supported sub-commands like bootm, so it is possible to
examine what will be booted before actually booting it.

In preparation for this, move the 'state' of the command into a struct.
This will allow it to be shared among multiple functions in this file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/zimage.c