aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/src/chschd.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/src/chschd.c')
-rw-r--r--os/rt/src/chschd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/rt/src/chschd.c b/os/rt/src/chschd.c
index 03d5259ed..3e7f84002 100644
--- a/os/rt/src/chschd.c
+++ b/os/rt/src/chschd.c
@@ -289,11 +289,11 @@ static void wakeup(void *p) {
chSysUnlockFromISR();
return;
case CH_STATE_SUSPENDED:
- *(thread_reference_t *)tp->p_u.wtobjp = NULL;
+ *tp->p_u.wttrp = NULL;
break;
#if CH_CFG_USE_SEMAPHORES == TRUE
case CH_STATE_WTSEM:
- chSemFastSignalI((semaphore_t *)tp->p_u.wtobjp);
+ chSemFastSignalI(tp->p_u.wtsemp);
/* Falls into, intentional. */
#endif
#if (CH_CFG_USE_CONDVARS == TRUE) && (CH_CFG_USE_CONDVARS_TIMEOUT == TRUE)