summaryrefslogtreecommitdiffstats
path: root/include/boot.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-15 12:57:56 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-26 22:45:40 +0100
commitbc94fb379a46f9b4dabc982953a8d553c909bedb (patch)
tree7e1dff5e7d4f26f92bbf40ebb531a982d58dcde6 /include/boot.h
parenta8531386ffdd3f0327bcd22a4b1447477453ad26 (diff)
downloadbarebox-bc94fb379a46f9b4dabc982953a8d553c909bedb.tar.gz
barebox-bc94fb379a46f9b4dabc982953a8d553c909bedb.tar.xz
bootm: Initialize bootm_data defaults in single place
Both the bootm and the boot code initialize the struct bootm_data with defaults from the bootm global variables. Create a common function for doing this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/boot.h')
-rw-r--r--include/boot.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/boot.h b/include/boot.h
index 7c6d9c8357..0c0febe48f 100644
--- a/include/boot.h
+++ b/include/boot.h
@@ -109,6 +109,8 @@ static inline int linux_bootargs_overwrite(const char *bootargs)
}
#endif
+void bootm_data_init_defaults(struct bootm_data *data);
+
int bootm_load_os(struct image_data *data, unsigned long load_address);
bool bootm_has_initrd(struct image_data *data);