mirror of https://github.com/ARMmbed/mbed-os.git
Added new locking init requirement for v8.x
The application must call void __iar_Initlocks(void); before any lock is used.pull/4938/head
parent
6c1ad4a4e4
commit
fe2646d183
|
@ -576,9 +576,14 @@ void pre_main(void)
|
|||
singleton_mutex_attr.cb_mem = &singleton_mutex_obj;
|
||||
singleton_mutex_id = osMutexNew(&singleton_mutex_attr);
|
||||
|
||||
#if (__IAR_SYSTEMS_ICC__ >= 8)
|
||||
__iar_Initlocks();
|
||||
#endif
|
||||
|
||||
if (low_level_init_needed) {
|
||||
__iar_dynamic_initialization();
|
||||
}
|
||||
|
||||
mbed_main();
|
||||
main();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue