Search found 2 matches

by jst
Fri Mar 21, 2025 11:19 am
Forum: Bug Reports
Topic: ARMv7-M-ALT port missing CH_CFG_CONTEXT_SWITCH_HOOK
Replies: 3
Views: 26155

Re: ARMv7-M-ALT port missing CH_CFG_CONTEXT_SWITCH_HOOK

It's really just the already mentioned one-liner

diff --git a/lib/ChibiOS/os/common/ports/ARMv7-M-ALT/chcore.c b/lib/ChibiOS/os/common/ports/ARMv7-M-ALT/chcore.c
index 03d8817eb..6c95d7fca 100644
--- a/lib/ChibiOS/os/common/ports/ARMv7-M-ALT/chcore.c
+++ b/lib/ChibiOS/os ...
by jst
Thu Mar 20, 2025 1:59 pm
Forum: Bug Reports
Topic: ARMv7-M-ALT port missing CH_CFG_CONTEXT_SWITCH_HOOK
Replies: 3
Views: 26155

ARMv7-M-ALT port missing CH_CFG_CONTEXT_SWITCH_HOOK

Hi,

I think there may be a bug in the ARMv7-M-ALT core (and, it seems in ARMv8-M-ML-ALT, too) in the __port_schedule_next(void) function (both in 21.11.x and trunk). Although it now calls __trace_switch(ntp, otp) and __stats_ctxswc(ntp, otp), the call to the CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) is ...