Skip to content
Snippets Groups Projects
Verified Commit 0c0e8ecf authored by rahix's avatar rahix
Browse files

fix(lifecycle): Reset API interrupt when looping in reset


When a load fails early and core 1 continues to loop in the reset stub,
Epicardium might lock up when sending an interrupt and waiting for the
API_CALL_MEM->int_id to be reset.

Signed-off-by: default avatarRahix <rahix@rahix.de>
parent fc200ced
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,12 @@ void __core1_init(void)
/* Signal that we are ready for an IVT address */
core1_info.ready = true;
/*
* Reset the API interrupt so we never block Epicardium when it
* attempts to trigger an interrupt.
*/
API_CALL_MEM->int_id = (-1);
SEMA_FreeSema(_CONTROL_SEMAPHORE);
__WFE();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment