mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-08 08:33:19 +00:00
PR 2026/filesystem - Fix semaphore attributes
Semaphores of type RTEMS_SIMPLE_BINARY_SEMAPHORE are not suitable for a mutex. Use RTEMS_BINARY_SEMAPHORE with RTEMS_INHERIT_PRIORITY instead.
This commit is contained in:
@@ -24,15 +24,10 @@
|
|||||||
#if __rtems__
|
#if __rtems__
|
||||||
/**
|
/**
|
||||||
* RTEMS_RFS Mutex Attributes
|
* RTEMS_RFS Mutex Attributes
|
||||||
*
|
|
||||||
* @warning Do not configure as inherit priority. If a driver is in the driver
|
|
||||||
* initialisation table this locked semaphore will have the IDLE task
|
|
||||||
* as the holder and a blocking task will raise the priority of the
|
|
||||||
* IDLE task which can cause unsual side effects like not work.
|
|
||||||
*/
|
*/
|
||||||
#define RTEMS_RFS_MUTEX_ATTRIBS \
|
#define RTEMS_RFS_MUTEX_ATTRIBS \
|
||||||
(RTEMS_PRIORITY | RTEMS_SIMPLE_BINARY_SEMAPHORE | \
|
(RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE | \
|
||||||
RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
|
RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|||||||
Reference in New Issue
Block a user