aboutsummaryrefslogtreecommitdiff
path: root/include/bootm.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-30 11:17:00 -0600
committerSimon Glass <sjg@chromium.org>2023-08-10 18:34:54 -0600
commitcbb607d2d9be44a5ded7a652e8e7646925adc1e0 (patch)
tree671ba049bd7d3f90e09fcbc9fac4726ccf12b343 /include/bootm.h
parent598dea978d5b7076fc5b6ed31bea0767925e8db0 (diff)
downloadu-boot-cbb607d2d9be44a5ded7a652e8e7646925adc1e0.zip
u-boot-cbb607d2d9be44a5ded7a652e8e7646925adc1e0.tar.gz
u-boot-cbb607d2d9be44a5ded7a652e8e7646925adc1e0.tar.bz2
bootstd: Allow display of the x86 setup information
Provide an option to dump this information if available. Move the funciion prototype to the common x86 header. Allow the command line to be left out since 'bootflow info' show this itself and it is not in the correct place in memory until the kernel is actually booted. Fix a badly aligned heading while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bootm.h')
-rw-r--r--include/bootm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/bootm.h b/include/bootm.h
index 6fe418e..92870ff 100644
--- a/include/bootm.h
+++ b/include/bootm.h
@@ -152,4 +152,15 @@ int zboot_start(ulong addr, ulong size, ulong initrd, ulong initrd_size,
const char *zimage_get_kernel_version(struct boot_params *params,
void *kernel_base);
+/**
+ * zimage_dump() - Dump the metadata of a zimage
+ *
+ * This shows all available information in a zimage that has been loaded.
+ *
+ * @base_ptr: Pointer to the boot parameters, typically at address
+ * DEFAULT_SETUP_BASE
+ * @show_cmdline: true to show the full command line
+ */
+void zimage_dump(struct boot_params *base_ptr, bool show_cmdline);
+
#endif