xtensa/esp32s3: reserve memory for a mutex struct depending on the OS
Enabling CONFIG_PRIORITY_INHERITANCE config causes a build error Based on Nuttx OS reserve memory for mutex struct. Pass build based on - CONFIG_PRIORITY_INHERITANCE y - CONFIG_SEM_PREALLOCHOLDERS 0/8
This commit is contained in:
parent
5e9358b782
commit
87ff0ddf6d
|
@ -39,7 +39,15 @@
|
||||||
|
|
||||||
struct __lock
|
struct __lock
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_PRIORITY_INHERITANCE
|
||||||
|
# if CONFIG_SEM_PREALLOCHOLDERS > 0
|
||||||
|
int reserved[5];
|
||||||
|
# else
|
||||||
|
int reserved[8];
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
int reserved[4];
|
int reserved[4];
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef _LOCK_T _lock_t;
|
typedef _LOCK_T _lock_t;
|
||||||
|
|
Loading…
Reference in New Issue