From f2386f6a22c55842203278c5b1f9691c5ac5f8fd Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 21 Dec 2010 10:30:39 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2515 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/GCC/PPC/crt0.s | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'os/ports/GCC/PPC/crt0.s') 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 -- cgit v1.2.3