Skip to content

Commit 4a6b5fc

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 107ee87 commit 4a6b5fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rtos/mbed_boot.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,11 @@ void pre_main(void)
579579
if (low_level_init_needed) {
580580
__iar_dynamic_initialization();
581581
}
582+
583+
#if (__IAR_SYSTEMS_ICC__ >= 8)
584+
__iar_Initlocks();
585+
#endif
586+
582587
mbed_main();
583588
main();
584589
}

0 commit comments

Comments
 (0)