diff --git a/readme.txt b/readme.txt index 00a8baabe..96c9fe235 100644 --- a/readme.txt +++ b/readme.txt @@ -28,8 +28,6 @@ Current ports under ./demos: Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process, MinGW version. -Win32-MSVS - ChibiOS/RT simulator and demo into a WIN32 process, - Visual Studio 7 or any later version should work. ARM7-LPC214x-GCC - ChibiOS/RT port for ARM7 LPC2148, the demo targets the Olimex LPC-P2148 board. This port can be easily modified for any processor into the LPC2000 family or 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);