From 869cacb3d442841c83034736e1f1702fc9bb2d8e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 11 Mar 2008 16:42:20 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@223 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chschd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/chschd.c') 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 -/** @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.*/ -- cgit v1.2.3