mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 06:51:28 +02:00
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>
This commit is contained in:
@@ -144,6 +144,16 @@ int event_register(const char *id, enum event_t type, event_handler_t func,
|
||||
/** event_show_spy_list( - Show a list of event spies */
|
||||
void event_show_spy_list(void);
|
||||
|
||||
/**
|
||||
* event_manual_reloc() - Relocate event handler pointers
|
||||
*
|
||||
* Relocate event handler pointers for all static event spies. It is called
|
||||
* during the generic board init sequence, after relocation.
|
||||
*
|
||||
* Return: 0 if OK
|
||||
*/
|
||||
int event_manual_reloc(void);
|
||||
|
||||
/**
|
||||
* event_notify() - notify spies about an event
|
||||
*
|
||||
|
Reference in New Issue
Block a user