summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2025-01-15 18:27:18 -0700
committerTom Rini <[email protected]>2025-01-22 09:47:50 -0600
commitbed7c4599d14c251021b82186ecf558689873486 (patch)
treec1965731d1f9219242d92928bcd0fc6d1cc77aec /include
parentd86bdb60b51f864d188edc5d27847db5d2dfe75d (diff)
spl: Add a type for the jumper function
This function will be used by the relocating jumper too, so add a typedef to the header file to avoid mismatches. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/spl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 781e5a2d638..488adbeb1bc 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -292,6 +292,9 @@ struct spl_image_info {
#endif
};
+/* function to jump to an image from SPL */
+typedef void __noreturn (*spl_jump_to_image_t)(struct spl_image_info *);
+
static inline void *spl_image_fdt_addr(struct spl_image_info *info)
{
#if CONFIG_IS_ENABLED(LOAD_FIT) || CONFIG_IS_ENABLED(LOAD_FIT_FULL)