Skip to content

Commit 0562128

Browse files
committed
Fix single-threaded apps for IAR v8 builds
For single-threaded apps __iar_Initlocks() is not required and must not be called because the proper IAR library is brought in only if "--threaded_lib" is defined in the linker command.
1 parent 355f09b commit 0562128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtos/TARGET_CORTEX/TOOLCHAIN_IAR/mbed_boot_iar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void __iar_program_start(void)
8787

8888
void mbed_toolchain_init(void)
8989
{
90-
#if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000)
90+
#if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000) && !defined(MBED_RTOS_SINGLE_THREAD)
9191
__iar_Initlocks();
9292
#endif
9393

0 commit comments

Comments
 (0)