projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lm3s1968: offload Serial structure from the serial prompt process's stack.
[bertos.git]
/
bertos
/
kern
/
proc.c
diff --git
a/bertos/kern/proc.c
b/bertos/kern/proc.c
index acaf4220a1bdd3527f274762096b648f65ecac20..a18fc40498d52e85e198ee54e5e13a1e90e2c49e 100644
(file)
--- a/
bertos/kern/proc.c
+++ b/
bertos/kern/proc.c
@@
-453,7
+453,8
@@
void proc_schedule(void)
MEMORY_BARRIER;
IRQ_DISABLE;
}
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());
}
/* This RET resumes the execution on the new process */
LOG_INFO("resuming %p:%s\n", current_process, proc_currentName());
}