aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-16 08:34:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-16 08:34:49 +0000
commitc6c9371ab6a89bdeca60076445028d23e7816156 (patch)
tree3aceb7c19f488dffd17f9659966a2a46afb788f3 /os/ports
parentf9347f02cbe114ada86d4f92b614ac561893862d (diff)
downloadChibiOS-c6c9371ab6a89bdeca60076445028d23e7816156.tar.gz
ChibiOS-c6c9371ab6a89bdeca60076445028d23e7816156.tar.bz2
ChibiOS-c6c9371ab6a89bdeca60076445028d23e7816156.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4762 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports')
-rw-r--r--os/ports/GCC/PPC/crt0.s15
1 files changed, 14 insertions, 1 deletions
diff --git a/os/ports/GCC/PPC/crt0.s b/os/ports/GCC/PPC/crt0.s
index 4a2bc4dea..d20cb7ffb 100644
--- a/os/ports/GCC/PPC/crt0.s
+++ b/os/ports/GCC/PPC/crt0.s
@@ -91,6 +91,10 @@ _boot_address:
b .dataloop
.dataend:
/*
+ * Late initialization.
+ */
+ bl __late_init
+ /*
* Main program invocation.
*/
bl main
@@ -106,7 +110,7 @@ _main_exit_handler:
b _main_exit_handler
/*
- * Default initialization code, none.
+ * Default early initialization code, none.
*/
.weak __early_init
.globl __early_init
@@ -114,6 +118,15 @@ _main_exit_handler:
__early_init:
blr
+ /*
+ * Default late initialization code, none.
+ */
+ .weak __late_init
+ .globl __late_init
+ .type __late_init, @function
+__late_init:
+ blr
+
#endif /* !defined(__DOXYGEN__) */
/** @} */