]> git.baikalelectronics.ru Git - uboot.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)
commitcbe8a606558d8742c26a00483b6e575b4f2439d1
tree184141afa9bbbd2675522c639f744821a120b10b
parentc56bbdf22b8b45086067de233355552b58b82900
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