Skip to content
Snippets Groups Projects

Fix lockup when attempting to load a l0dable with disabled ELF loading

Merged rahix requested to merge rahix/l0dable-lockup into master
4 files
+ 52
15
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 4
0
@@ -227,6 +227,7 @@ void core1_wait_ready(void)
* above loop, waiting for a new IVT.
*/
if (core1_info.ready) {
SEMA_FreeSema(_CONTROL_SEMAPHORE);
break;
}
@@ -245,6 +246,9 @@ void core1_wait_ready(void)
void core1_load(void *ivt, char *args)
{
while (SEMA_GetSema(_CONTROL_SEMAPHORE) == E_BUSY) {
}
/* If the core is currently in an API call, reset it. */
API_CALL_MEM->call_flag = _API_FLAG_IDLE;
API_CALL_MEM->id = 0;
Loading