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:
Gao Feng 2024-08-07 15:09:30 +08:00 committed by Xiang Xiao
parent 5e9358b782
commit 87ff0ddf6d
1 changed files with 8 additions and 0 deletions

View File

@ -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;