summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bootflow.h2
-rw-r--r--include/bootm.h11
2 files changed, 12 insertions, 1 deletions
diff --git a/include/bootflow.h b/include/bootflow.h
index ff2bddb515..fdcfeddc1a 100644
--- a/include/bootflow.h
+++ b/include/bootflow.h
@@ -108,7 +108,7 @@ struct bootflow {
ulong fdt_addr;
int flags;
char *cmdline;
- char *x86_setup;
+ void *x86_setup;
void *bootmeth_priv;
};
diff --git a/include/bootm.h b/include/bootm.h
index 6fe418e002..92870ff1a2 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