diff options
author | Ovidiu Panait <ovpanait@gmail.com> | 2022-05-15 21:40:29 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-06 18:01:20 -0400 |
commit | cebc8161708e357758c407eaa79a8cd66ee68fde (patch) | |
tree | d48954c6b4b3c371a700114b17bba8d1978dddd5 /common/board_r.c | |
parent | 12c90955a7e82687acaed3cb53d096bc669e82ca (diff) |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC
Static events do not currently work post-relocation for boards that enable
CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event
spies to fix this.
Tested on Microblaze.
Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Diffstat (limited to 'common/board_r.c')
-rw-r--r-- | common/board_r.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c index 22b5deaa8c..4e3cf1f4ec 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -612,6 +612,9 @@ static init_fnc_t init_sequence_r[] = { */ #endif initr_reloc_global_data, +#if CONFIG_IS_ENABLED(NEEDS_MANUAL_RELOC) && CONFIG_IS_ENABLED(EVENT) + event_manual_reloc, +#endif #if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500) initr_unlock_ram_in_cache, #endif |