aboutsummaryrefslogtreecommitdiffstats
path: root/src/chschd.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-03-12 10:36:28 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-03-12 10:36:28 +0000
commit7500baf6cd6457ce77b5a474031f35bd5b30fb6a (patch)
treea6b0af1f51c720491ac60095343ea055c870ce94 /src/chschd.c
parent869cacb3d442841c83034736e1f1702fc9bb2d8e (diff)
downloadChibiOS-7500baf6cd6457ce77b5a474031f35bd5b30fb6a.tar.gz
ChibiOS-7500baf6cd6457ce77b5a474031f35bd5b30fb6a.tar.bz2
ChibiOS-7500baf6cd6457ce77b5a474031f35bd5b30fb6a.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@224 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chschd.c')
-rw-r--r--src/chschd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/chschd.c b/src/chschd.c
index 7c45e009e..c0be50524 100644
--- a/src/chschd.c
+++ b/src/chschd.c
@@ -92,6 +92,9 @@ void chSchGoSleepS(tstate_t newstate) {
}
#ifdef CH_USE_VIRTUAL_TIMERS
+/*
+ * Timeout wakeup callback.
+ */
static void wakeup(void *p) {
#ifdef CH_USE_SEMAPHORES
@@ -139,9 +142,9 @@ void chSchWakeupS(Thread *ntp, msg_t msg) {
chSchReadyI(ntp, msg);
else {
Thread *otp = currp;
+ ntp->p_rdymsg = msg;
chSchReadyI(otp, RDY_OK);
(currp = ntp)->p_state = PRCURR;
- ntp->p_rdymsg = msg;
rlist.r_preempt = CH_TIME_QUANTUM;
#ifdef CH_USE_TRACE
chDbgTrace(otp, ntp);