aboutsummaryrefslogtreecommitdiffstats
path: root/src/chschd.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-03-11 16:42:20 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-03-11 16:42:20 +0000
commit869cacb3d442841c83034736e1f1702fc9bb2d8e (patch)
treeb555a8ee87081ec068929e1bdd082319744f7153 /src/chschd.c
parent88c256ae5265f5d6a7ffa25dc17f693e036256bf (diff)
downloadChibiOS-869cacb3d442841c83034736e1f1702fc9bb2d8e.tar.gz
ChibiOS-869cacb3d442841c83034736e1f1702fc9bb2d8e.tar.bz2
ChibiOS-869cacb3d442841c83034736e1f1702fc9bb2d8e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@223 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chschd.c')
-rw-r--r--src/chschd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chschd.c b/src/chschd.c
index b7f52c96d..7c45e009e 100644
--- a/src/chschd.c
+++ b/src/chschd.c
@@ -24,7 +24,7 @@
#include <ch.h>
-/** @cond never*/
+/** @cond never */
ReadyList rlist;
/** @endcond */
@@ -58,10 +58,11 @@ INLINE void chSchReadyI(Thread *tp, msg_t msg) {
#else
void chSchReadyI(Thread *tp, msg_t msg) {
#endif
- Thread *cp = rlist.r_queue.p_next;
+ Thread *cp;
tp->p_state = PRREADY;
tp->p_rdymsg = msg;
+ cp = rlist.r_queue.p_next;
while (cp->p_prio >= tp->p_prio)
cp = cp->p_next;
/* Insertion on p_prev.*/