diff options
author | Simon Glass <sjg@chromium.org> | 2023-12-03 17:29:27 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-04-10 13:49:15 -0600 |
commit | bade0ac04b96d92642b3d433734cde2f00ab7fc5 (patch) | |
tree | 7db7073de6ebdb49eb68a65034cacf7f13a5d541 /arch/x86/include | |
parent | e4255f45c94f8195505032fcf6c709ef7f1f7351 (diff) | |
download | u-boot-bade0ac04b96d92642b3d433734cde2f00ab7fc5.tar.gz u-boot-bade0ac04b96d92642b3d433734cde2f00ab7fc5.tar.bz2 u-boot-bade0ac04b96d92642b3d433734cde2f00ab7fc5.zip |
x86: zboot: Move command code into its own file
Much of the code in zimage.c deals with the zboot command. Move it into
a sepatate zboot.c file within the cmd/ directory. This will eventually
allow use of the zimage logic without the command being enabled.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/zimage.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/x86/include/asm/zimage.h b/arch/x86/include/asm/zimage.h index a91cfb2b8d..ac6683ea9e 100644 --- a/arch/x86/include/asm/zimage.h +++ b/arch/x86/include/asm/zimage.h @@ -72,6 +72,37 @@ struct zboot_state { extern struct zboot_state state; /** + * zimage_dump() - Dump information about a zimage + * + * @base_ptr: Pointer to the boot parameters + * @show_cmdline: true to show the kernel command line + */ +void zimage_dump(struct boot_params *base_ptr, bool show_cmdline); + +/** + * zboot_load() - Load a zimage + * + * Load the zimage into the correct place + * + * Return: 0 if OK, -ve on error + */ +int zboot_load(void); + +/** + * zboot_setup() - Set up the zboot image reeady for booting + * + * Return: 0 if OK, -ve on error + */ +int zboot_setup(void); + +/** + * zboot_go() - Start the image + * + * Return: 0 if OK, -ve on error + */ +int zboot_go(void); + +/** * load_zimage() - Load a zImage or bzImage * * This copies an image into the standard location ready for setup |