aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-12-03 17:29:27 -0700
committerTom Rini <trini@konsulko.com>2024-04-10 13:49:15 -0600
commitbade0ac04b96d92642b3d433734cde2f00ab7fc5 (patch)
tree7db7073de6ebdb49eb68a65034cacf7f13a5d541 /arch/x86/include
parente4255f45c94f8195505032fcf6c709ef7f1f7351 (diff)
downloadu-boot-bade0ac04b96d92642b3d433734cde2f00ab7fc5.zip
u-boot-bade0ac04b96d92642b3d433734cde2f00ab7fc5.tar.gz
u-boot-bade0ac04b96d92642b3d433734cde2f00ab7fc5.tar.bz2
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.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/x86/include/asm/zimage.h b/arch/x86/include/asm/zimage.h
index a91cfb2..ac6683e 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