From 7500baf6cd6457ce77b5a474031f35bd5b30fb6a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 12 Mar 2008 10:36:28 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@224 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chschd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/chschd.c') 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); -- cgit v1.2.3