schedrelease() don't schedule if current interrupt frame is NULL

This commit is contained in:
2025-09-19 23:48:30 +02:00
parent 5b6408b06b
commit 81dc694a23

View File

@ -11,7 +11,9 @@ int32_t SYSCALL0(sys_schedrelease) {
Proc *proc = PROCS.current; Proc *proc = PROCS.current;
spinlock_release(&PROCS.spinlock); spinlock_release(&PROCS.spinlock);
proc_sched((void *)INTR_CURRENT_FRAME); if (INTR_CURRENT_FRAME != NULL) {
proc_sched((void *)INTR_CURRENT_FRAME);
}
return E_OK; return E_OK;
} }