os-less osalSysLock implementation

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
Posts: 12
Joined: Sat Dec 19, 2015 3:21 pm

os-less osalSysLock implementation

Postby Captain » Mon Jul 09, 2018 2:27 pm

I don't know if os-less OSAL (ha/osal/os-less) is a part of ChibiOS/HAL, but osalSysLock/Unlock behaviour might be confusing on some targets. It invokes __set_BASEPRI(OSAL_IRQ_MAXIMUM_PRIORITY) (except for CortexM0) and OSAL_IRQ_MAXIMUM_PRIORITY is implicitly set to 1. Without taking priority grouping into account this leads to osalSysLock being unable to mask out interrupts. As RTOS port layer macros are not available, the simple workaround I see is to rely on __enable(disable)_irq().
Thank you for your attention.

User avatar
Site Admin
Posts: 11860
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 524 times
Been thanked: 437 times

Re: os-less osalSysLock implementation

Postby Giovanni » Sun Jan 06, 2019 5:12 pm


Moved in change requests for feedback and analysis.


Last bumped by Giovanni on Sun Jan 06, 2019 5:12 pm.

Return to “Small Change Requests”

Who is online

Users browsing this forum: No registered users and 2 guests