diff options
Diffstat (limited to 'src/chthreads.c')
-rw-r--r-- | src/chthreads.c | 1 |
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;
|