diff options
author | Simon Glass <sjg@chromium.org> | 2023-08-21 21:16:55 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-31 13:16:54 -0400 |
commit | dd802467f44b68d6ed9315ffe3002b17dc43b622 (patch) | |
tree | 4e44642f6b9e8a7113af38d59ecb8a40297cf361 /include | |
parent | c9eff0a6b6ea2bcd54d30f8a02281681f3730223 (diff) | |
download | u-boot-dd802467f44b68d6ed9315ffe3002b17dc43b622.tar.gz u-boot-dd802467f44b68d6ed9315ffe3002b17dc43b622.tar.bz2 u-boot-dd802467f44b68d6ed9315ffe3002b17dc43b622.zip |
initcall: Support manual relocation
Move the manual-relocation code to the initcall file. Make sure to avoid
manually relocating event types. Only true function pointers should be
relocated.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/initcall.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/initcall.h b/include/initcall.h index 62d3bb67f0..208effd8d1 100644 --- a/include/initcall.h +++ b/include/initcall.h @@ -35,4 +35,11 @@ typedef int (*init_fnc_t)(void); */ int initcall_run_list(const init_fnc_t init_sequence[]); +/** + * initcall_manual_reloc() - Do manual relocation on an initcall sequence + * + * @init_sequence: NULL-terminated init sequence to relocate + */ +void initcall_manual_reloc(init_fnc_t init_sequence[]); + #endif |