aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/GCC/ARM/crt0.s
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-21 10:30:39 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-21 10:30:39 +0000
commitf2386f6a22c55842203278c5b1f9691c5ac5f8fd (patch)
treeb7f318640fa8ff688925eab4fe544d41f3dd019a /os/ports/GCC/ARM/crt0.s
parent25d2722b09c5ed808fbb5b09bafc94f253da2479 (diff)
downloadChibiOS-f2386f6a22c55842203278c5b1f9691c5ac5f8fd.tar.gz
ChibiOS-f2386f6a22c55842203278c5b1f9691c5ac5f8fd.tar.bz2
ChibiOS-f2386f6a22c55842203278c5b1f9691c5ac5f8fd.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2515 35acf78f-673a-0410-8e92-d51de3d6d3f4
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
/*