aboutsummaryrefslogtreecommitdiffstats
path: root/src/chthreads.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-09-25 18:38:01 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-09-25 18:38:01 +0000
commit619b739d93252f4fc78a98e1bd1c36e9edbbca28 (patch)
treeab5a24e0e8be33bebab0ae9f9d85dd602328da2f /src/chthreads.c
parentf6c9ebb65b9a1239638125b7c1f910f12c722b79 (diff)
downloadChibiOS-619b739d93252f4fc78a98e1bd1c36e9edbbca28.tar.gz
ChibiOS-619b739d93252f4fc78a98e1bd1c36e9edbbca28.tar.bz2
ChibiOS-619b739d93252f4fc78a98e1bd1c36e9edbbca28.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@21 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chthreads.c')
-rw-r--r--src/chthreads.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/chthreads.c b/src/chthreads.c
index 59c361116..8f7112647 100644
--- a/src/chthreads.c
+++ b/src/chthreads.c
@@ -61,6 +61,7 @@ void _InitThread(t_prio prio, t_tmode mode, Thread *tp) {
tp->p_rdymsg = RDY_OK;
#ifdef CH_USE_RT_SEMAPHORES
tp->p_rtcnt = 0;
+ tp->p_bakprio = prio;
#endif
#ifdef CH_USE_WAITEXIT
tp->p_waiting.p_next = (Thread *)&tp->p_waiting;