aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/GCC/PPC/crt0.s
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-02-21 08:23:11 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-02-21 08:23:11 +0000
commit18ff8298847960c260546acb70ec3e4bdd2a5213 (patch)
treecc32dc26421468c6ac04aae260b868578ad9c38e /os/ports/GCC/PPC/crt0.s
parent157b6f9695e7f72f2d54b231c19cb4045710ed01 (diff)
downloadChibiOS-18ff8298847960c260546acb70ec3e4bdd2a5213.tar.gz
ChibiOS-18ff8298847960c260546acb70ec3e4bdd2a5213.tar.bz2
ChibiOS-18ff8298847960c260546acb70ec3e4bdd2a5213.zip
Added PowerPC documentation files. Few fixes to the startup file.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1647 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/GCC/PPC/crt0.s')
-rw-r--r--os/ports/GCC/PPC/crt0.s28
1 files changed, 14 insertions, 14 deletions
diff --git a/os/ports/GCC/PPC/crt0.s b/os/ports/GCC/PPC/crt0.s
index ee8d4c2ac..e12a87843 100644
--- a/os/ports/GCC/PPC/crt0.s
+++ b/os/ports/GCC/PPC/crt0.s
@@ -38,8 +38,20 @@ _boot_address:
li %r0, 0
stwu %r0, -8(%r1)
/*
- * Early initialization.
- */
+ * IVPR initialization.
+ */
+ lis %r4, __ivpr_base__@h
+ mtIVPR %r4
+ /*
+ * Small sections registers initialization.
+ */
+ lis %r2, __sdata2_start__@h
+ ori %r2, %r2, __sdata2_start__@l
+ lis %r13, __sdata_start__@h
+ ori %r13, %r13, __sdata_start__@l
+ /*
+ * Early initialization.
+ */
bl hwinit0
/*
* BSS clearing.
@@ -75,18 +87,6 @@ _boot_address:
b .dataloop
.dataend:
/*
- * Small sections registers initialization.
- */
- lis %r2, __sdata2_start__@h
- ori %r2, %r2, __sdata2_start__@l
- lis %r13, __sdata_start__@h
- ori %r13, %r13, __sdata_start__@l
- /*
- * IVPR initialization.
- */
- lis %r4, __ivpr_base__@h
- mtIVPR %r4
- /*
* Late initialization.
*/
bl hwinit1