diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-21 10:30:39 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-21 10:30:39 +0000 |
commit | f2386f6a22c55842203278c5b1f9691c5ac5f8fd (patch) | |
tree | b7f318640fa8ff688925eab4fe544d41f3dd019a /os/ports/GCC/PPC | |
parent | 25d2722b09c5ed808fbb5b09bafc94f253da2479 (diff) | |
download | ChibiOS-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/PPC')
-rw-r--r-- | os/ports/GCC/PPC/crt0.s | 10 | ||||
-rw-r--r-- | os/ports/GCC/PPC/port.dox | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/os/ports/GCC/PPC/crt0.s b/os/ports/GCC/PPC/crt0.s index c40f5efb2..0a2697be8 100644 --- a/os/ports/GCC/PPC/crt0.s +++ b/os/ports/GCC/PPC/crt0.s @@ -89,17 +89,15 @@ _boot_address: /*
* Main program invocation.
*/
- li %r3, 0
- li %r4, 0
bl main
- b main_exit
+ b _main_exit_handler
/*
* Default main exit code, infinite loop.
*/
- .weak main_exit
- .globl main_exit
-main_exit:
+ .weak _main_exit_handler
+ .globl _main_exit_handler
+_main_exit_handler:
forever:
b forever
diff --git a/os/ports/GCC/PPC/port.dox b/os/ports/GCC/PPC/port.dox index 6c3bc55f2..70ba4784a 100644 --- a/os/ports/GCC/PPC/port.dox +++ b/os/ports/GCC/PPC/port.dox @@ -112,7 +112,7 @@ * -# The @p main() function is invoked with the parameters @p argc and @p argv
* set to zero.
* -# Should the @p main() function return a branch is performed to the weak
- * symbol @p main_exit. The default code is an endless empty loop.
+ * symbol @p _main_exit_handler. The default code is an endless empty loop.
* .
* @section PPC_STARTUP_2 Expected linker symbols
* The startup code starts at the symbol @p _boot_address and expects the
|