Merge branch 'bugfix/newlib_tz_env_mutex_v4.3' into 'release/v4.3'

newlib: Use correct recursive mutex for env and regular mutex for tz (v4.3)

See merge request espressif/esp-idf!22295
This commit is contained in:
Jiang Jiang Jian
2023-02-11 12:32:55 +08:00

View File

@ -384,9 +384,9 @@ void esp_newlib_locks_init(void)
extern _lock_t __sinit_lock; extern _lock_t __sinit_lock;
__sinit_lock = (_lock_t) &s_common_recursive_mutex; __sinit_lock = (_lock_t) &s_common_recursive_mutex;
extern _lock_t __env_lock_object; 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; 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) || defined(CONFIG_IDF_TARGET_ESP32S3) #elif defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32S3)
/* Newlib 3.0.0 is used in ROM, the following lock symbols are defined: */ /* Newlib 3.0.0 is used in ROM, the following lock symbols are defined: */
extern _lock_t __sinit_recursive_mutex; extern _lock_t __sinit_recursive_mutex;