Skip to content

Commit fe2646d

Browse files
author
Deepika
committed
Added new locking init requirement for v8.x
The application must call void __iar_Initlocks(void); before any lock is used.
1 parent 6c1ad4a commit fe2646d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rtos/TARGET_CORTEX/mbed_boot.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,14 @@ void pre_main(void)
576576
singleton_mutex_attr.cb_mem = &singleton_mutex_obj;
577577
singleton_mutex_id = osMutexNew(&singleton_mutex_attr);
578578

579+
#if (__IAR_SYSTEMS_ICC__ >= 8)
580+
__iar_Initlocks();
581+
#endif
582+
579583
if (low_level_init_needed) {
580584
__iar_dynamic_initialization();
581585
}
586+
582587
mbed_main();
583588
main();
584589
}

0 commit comments

Comments
 (0)