]> begriffs open source - freertos/commit
smp branch: bugfix for race condition on RP2040 (#431)
authorTimo Sandmann <tsandmann@users.noreply.github.com>
Tue, 28 Dec 2021 20:30:03 +0000 (21:30 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Dec 2021 20:30:03 +0000 (12:30 -0800)
commit4832377117b4198db43009f2b548497d9cdbf8da
tree10b6f327700eb24c8fdc818cf36f0b913747424e
parent7d11089624cb18ef0052fd2fc96bb86d0d6d4109
smp branch: bugfix for race condition on RP2040 (#431)

* Bugfix for race condition on RP2040 in vPortEnableInterrupts()

RP2040 SMP port: Since spin_unlock() re-enables interrupts, pxYieldSpinLock has to be updated first to avoid a possible race condition.

* Bugfix for invalid sanity checks on RP2040

RP2040 SMP port: Testing pxYieldSpinLock for NULL does not work reliable in these places, because another/new lock might already be set when configASSERT() is executed.
portable/ThirdParty/GCC/RP2040/port.c