diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-01-09 09:59:59 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-01-10 11:53:18 +0100 |
commit | 9bd67f5e6184ecd03b8e052706218f2a741027c3 (patch) | |
tree | 51a5ac95bbc796e0acd756d1fa8df9b4a65f90fb /include/boot.h | |
parent | f1025bbf3292c8c199e23e618c062ec1e9f2f055 (diff) | |
download | barebox-9bd67f5e6184ecd03b8e052706218f2a741027c3.tar.gz barebox-9bd67f5e6184ecd03b8e052706218f2a741027c3.tar.xz |
bootm: introduce bootm_load_os helper
The common bootm code used to load uImage contents to SDRAM
before calling into the handlers if possible. This makes the
handlers complicated since they have to handle many cases. Instead,
introduce a helper to load the os after the handlers have figured
out a good load address.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/boot.h')
-rw-r--r-- | include/boot.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/boot.h b/include/boot.h index 56f6c359b9..61ab5d0a4a 100644 --- a/include/boot.h +++ b/include/boot.h @@ -108,6 +108,8 @@ static inline int linux_bootargs_overwrite(const char *bootargs) } #endif +int bootm_load_os(struct image_data *data, unsigned long load_address); + #define UIMAGE_SOME_ADDRESS (UIMAGE_INVALID_ADDRESS - 1) #endif /* __BOOT_H */ |