aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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__) */
/** @} */