summaryrefslogtreecommitdiff
path: root/py/modstruct.c
diff options
context:
space:
mode:
authorPeter Harper <peter.harper@raspberrypi.com>2025-11-05 10:19:27 +0000
committerDamien George <damien@micropython.org>2025-11-19 16:35:10 +1100
commit4e79698a997465b1043fa8cbc4a72cdac889341f (patch)
treee990990d01be15930851f56b9795d4d09fdcb5c7 /py/modstruct.c
parent094437686fc53727318eea82e5609106c26e882a (diff)
rp2/pendsv: Fix PendSV_Handler dispatch check when threading enabled.
If MICROPY_PY_THREAD is set, PendSV_Handler acquires a mutex and calls the dispatch functions. If pendsv_schedule_dispatch is called by a higher priority interrupt while the mutex is acquired by PendSV_Handler it's possible for the dispatch to not be triggered. Add a check for dispatch calls at the end of PendSV_Handler once the mutex has been released. Fixes issue #18365. Signed-off-by: Peter Harper <peter.harper@raspberrypi.com>
Diffstat (limited to 'py/modstruct.c')
0 files changed, 0 insertions, 0 deletions