From c97d08b67062524ee82c666b156899f1b605ce41 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 4 Apr 2021 17:23:25 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14136 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/rt/src/chschd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os/rt/src/chschd.c b/os/rt/src/chschd.c index 59599d287..1b9a5318f 100644 --- a/os/rt/src/chschd.c +++ b/os/rt/src/chschd.c @@ -394,7 +394,11 @@ void chSchObjectInit(os_instance_t *oip, * @iclass */ thread_t *chSchReadyI(thread_t *tp) { +#if CH_CFG_SMP_MODE == FALSE os_instance_t *oip = currcore; +#else + os_instance_t *oip = tp->owner; +#endif chDbgCheckClassI(); chDbgCheck(tp != NULL);