]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: zboot: Move kernel-version code into a function
authorSimon Glass <sjg@chromium.org>
Sat, 5 Sep 2020 20:50:40 +0000 (14:50 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:07 +0000 (11:27 +0800)
commitc038f3be3b9b9d77077c7a0c89eb0a01302d3ba4
tree184141afa9bbbd2675522c639f744821a120b10b
parent30b372d41984fe53c329dbc7c9f400bc23210173
x86: zboot: Move kernel-version code into a function

To help reduce the size and complexity of load_zimage(), move the code
that reads the kernel version into a separate function. Update
get_boot_protocol() to allow printing the 'Magic signature' message only
once, under control of its callers.

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