X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc.c;h=a18fc40498d52e85e198ee54e5e13a1e90e2c49e;hb=82aa9864bc5accc468d3c9ed109a8b44ef36da94;hp=acaf4220a1bdd3527f274762096b648f65ecac20;hpb=f149112c04843df99b2c9e9fd2ef47d9cacae8a4;p=bertos.git diff --git a/bertos/kern/proc.c b/bertos/kern/proc.c index acaf4220..a18fc404 100644 --- a/bertos/kern/proc.c +++ b/bertos/kern/proc.c @@ -453,7 +453,8 @@ void proc_schedule(void) MEMORY_BARRIER; IRQ_DISABLE; } - proc_switchTo(current_process, old_process); + if (CONTEXT_SWITCH_FROM_ISR()) + proc_switchTo(current_process, old_process); /* This RET resumes the execution on the new process */ LOG_INFO("resuming %p:%s\n", current_process, proc_currentName()); }