You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Does SST_Task_lock() need to handle basepri_ == 0? #7
The BASEPRI reset value is 0x00000000, which means masking is disabled
(BASEPRI has no effect).
See Exception mask registers.
when basepri_ is 0, the condition basepri_ > nvic_prio is always false, so
the lock not work as expected.
So does SST_Task_lock() need to be modified like this?
- if (basepri_ > nvic_prio) { /* current priority lower than the ceiling? */+ if ((basepri_ == 0) || (basepri_ > nvic_prio)) { /* current priority lower than the ceiling? */
Activity
[-]SST_Task_lock() needs to handle basepri_ == 0?[/-][+]Does SST_Task_lock() need to handle basepri_ == 0?[/+]mattheweshleman commentedon Oct 18, 2026
The answer appears to be yes. I would suggest opening a pull-request with the appropriate changes to the C and C++ versions.