]> git.baikalelectronics.ru Git - uboot.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)
commit30a3180d36424f39a743ad1c91d3ffe739abd89d
tree110c4a5f3d9ea6dcea150ea18c22d3c8c000a7cd
parenta9b3ec59efb9e47706cd508b77b487458bf655f7
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