aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/GCC/ARM/crt0.s
diff options
context:
space:
mode:
Diffstat (limited to 'os/ports/GCC/ARM/crt0.s')
-rw-r--r--os/ports/GCC/ARM/crt0.s14
1 files changed, 5 insertions, 9 deletions
diff --git a/os/ports/GCC/ARM/crt0.s b/os/ports/GCC/ARM/crt0.s
index 33cbb5600..b3a6aa392 100644
--- a/os/ports/GCC/ARM/crt0.s
+++ b/os/ports/GCC/ARM/crt0.s
@@ -125,25 +125,21 @@ bssloop:
add r0, pc, #1
bx r0
.code 16
- mov r0, #0
- mov r1, r0
bl main
- ldr r1, =MainExitHandler
+ ldr r1, =_main_exit_handler
bx r1
.code 32
#else
- mov r0, #0
- mov r1, r0
bl main
- b MainExitHandler
+ b _main_exit_handler
#endif
/*
* Default main function exit handler.
*/
- .weak MainExitHandler
- .global MainExitHandler
-MainExitHandler:
+ .weak _main_exit_handler
+ .global _main_exit_handler
+_main_exit_handler:
.loop: b .loop
/*