aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/ports/IAR/ARMCMx/cstartup.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/ports/IAR/ARMCMx/cstartup.s b/os/ports/IAR/ARMCMx/cstartup.s
index 61da4b472..6481d3490 100644
--- a/os/ports/IAR/ARMCMx/cstartup.s
+++ b/os/ports/IAR/ARMCMx/cstartup.s
@@ -39,13 +39,9 @@ CONTROL_USE_PSP SET 2
SECTION .intvec:CODE:NOROOT(3)
PUBLIC __iar_program_start
- EXTERN main
- EXTERN _exit
EXTERN __vector_table
EXTWEAK __iar_init_core
EXTWEAK __iar_init_vfp
- EXTWEAK __low_level_init
- EXTWEAK __iar_data_init3
SECTION .text:CODE:REORDER(2)
THUMB
@@ -61,6 +57,10 @@ __iar_program_start:
bl __iar_init_vfp
; Replicated cmain.s here in order to insert the call to hwinit1.
+ EXTERN main
+ EXTERN _exit
+ EXTWEAK __low_level_init
+ EXTWEAK __iar_data_init3
bl __low_level_init
cmp r0, #0
beq.n _call_main