aboutsummaryrefslogtreecommitdiffstats
path: root/src/chschd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chschd.c')
-rw-r--r--src/chschd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chschd.c b/src/chschd.c
index 4c3b05760..cbd1cfdd3 100644
--- a/src/chschd.c
+++ b/src/chschd.c
@@ -87,7 +87,7 @@ void chSchGoSleepS(t_tstate newstate) {
#ifdef CH_USE_TRACE
chDbgTrace(otp, currp);
#endif
- chSysSwitchI(&otp->p_ctx, &currp->p_ctx);
+ chSysSwitchI(otp, currp);
}
/**
@@ -114,7 +114,7 @@ void chSchWakeupS(Thread *ntp, t_msg msg) {
#ifdef CH_USE_TRACE
chDbgTrace(otp, ntp);
#endif
- chSysSwitchI(&otp->p_ctx, &ntp->p_ctx);
+ chSysSwitchI(otp, ntp);
}
}
@@ -131,7 +131,7 @@ void chSchDoRescheduleI(void) {
#ifdef CH_USE_TRACE
chDbgTrace(otp, currp);
#endif
- chSysSwitchI(&otp->p_ctx, &currp->p_ctx);
+ chSysSwitchI(otp, currp);
}
/**