aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-09-25 06:34:08 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-09-25 06:34:08 +0000
commit7262b9b8449408d64c2e6e13aca4dea0572dea7f (patch)
tree3f56eb091a0e9638ff34e1ee2e766d33cad060b1
parent2b9461f93fddfc9d1cebe292ccf135bfc8b61659 (diff)
downloadChibiOS-7262b9b8449408d64c2e6e13aca4dea0572dea7f.tar.gz
ChibiOS-7262b9b8449408d64c2e6e13aca4dea0572dea7f.tar.bz2
ChibiOS-7262b9b8449408d64c2e6e13aca4dea0572dea7f.zip
Fixed bug in chThdStartI().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9794 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/rt/src/chthreads.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/rt/src/chthreads.c b/os/rt/src/chthreads.c
index 177d515b7..df9b54dfe 100644
--- a/os/rt/src/chthreads.c
+++ b/os/rt/src/chthreads.c
@@ -378,7 +378,8 @@ thread_t *chThdCreateStatic(void *wsp, size_t size,
thread_t *chThdStart(thread_t *tp) {
chSysLock();
- tp = chThdStartI(tp);
+ chDbgAssert(tp->state == CH_STATE_WTSTART, "wrong state");
+ chSchWakeupS(tp, MSG_OK);
chSysUnlock();
return tp;