- initial commit from private repository

This commit is contained in:
Tido Klaassen
2015-07-07 21:20:20 +02:00
parent 18477010d0
commit aa9dc72a99
21 changed files with 1944 additions and 1 deletions

View File

@@ -342,6 +342,9 @@ static void atomThreadSwitch(ATOM_TCB *old_tcb, ATOM_TCB *new_tcb)
/* Set the new currently-running thread pointer */
curr_tcb = new_tcb;
/* TKL: If the thread is being scheduled in, it can not be suspended */
curr_tcb->suspended = FALSE;
/* Call the architecture-specific context switch */
archContextSwitch (old_tcb, new_tcb);
}
@@ -351,7 +354,13 @@ static void atomThreadSwitch(ATOM_TCB *old_tcb, ATOM_TCB *new_tcb)
* we get back here, we are running in old_tcb context again. Clear its
* suspend status now that we're back.
*/
old_tcb->suspended = FALSE;
/**
* TKL: does not work on Cortex-M because of the delayed context switching
* via pend_sv_handler and also the separate thread and exception stacks
* being used.
*/
// old_tcb->suspended = FALSE;
}