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: Rahix's avatarRahix <rahix@rahix.de>
parent fc200ced
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment