mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-30 00:10:16 +00:00
score: Conditionally provide ISR_lock_Control
Use ISR_LOCK_NEEDS_OBJECT to determine if a lock object is needed. Update #4957 and #5038.
This commit is contained in:
@@ -79,19 +79,14 @@ extern "C" {
|
||||
#define ISR_LOCK_NEEDS_OBJECT 0
|
||||
#endif
|
||||
|
||||
#if ISR_LOCK_NEEDS_OBJECT
|
||||
/**
|
||||
* @brief ISR lock control.
|
||||
*
|
||||
* @warning Empty structures are implementation-defined in C. GCC gives them a
|
||||
* size of zero. In C++ empty structures have a non-zero size.
|
||||
*/
|
||||
typedef struct {
|
||||
#if defined( RTEMS_SMP )
|
||||
SMP_lock_Control Lock;
|
||||
#else
|
||||
char empty;
|
||||
#endif
|
||||
} ISR_lock_Control;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Local ISR lock context for acquire and release pairs.
|
||||
|
||||
Reference in New Issue
Block a user