mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Use correct recursive mutex for env and regular mutex for tz
This commit is contained in:
parent
885e501d99
commit
60f678b736
@ -375,9 +375,9 @@ void esp_newlib_locks_init(void)
|
||||
extern _lock_t __sinit_lock;
|
||||
__sinit_lock = (_lock_t) &s_common_recursive_mutex;
|
||||
extern _lock_t __env_lock_object;
|
||||
__env_lock_object = (_lock_t) &s_common_mutex;
|
||||
__env_lock_object = (_lock_t) &s_common_recursive_mutex;
|
||||
extern _lock_t __tz_lock_object;
|
||||
__tz_lock_object = (_lock_t) &s_common_recursive_mutex;
|
||||
__tz_lock_object = (_lock_t) &s_common_mutex;
|
||||
#elif defined(CONFIG_IDF_TARGET_ESP32S2)
|
||||
/* Newlib 3.0.0 is used in ROM, the following lock symbols are defined: */
|
||||
extern _lock_t __sinit_recursive_mutex;
|
||||
|
Loading…
Reference in New Issue
Block a user