summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-11-08 23:48:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-11-08 23:48:52 +0000
commitde202e7204715267e2439f0e87c4b83c143ecddf (patch)
tree819783f834575b6a04cbe57024752da1e6dc7678 /c/src
parent2001-11-08 Dennis Ehlin (ECS) <Dennis.Ehlin@ecs.ericsson.se> (diff)
downloadrtems-de202e7204715267e2439f0e87c4b83c143ecddf.tar.bz2
2001-11-08 Dennis Ehlin (ECS) <Dennis.Ehlin@ecs.ericsson.se>
This modification is part of the submitted modifications necessary to support the IBM PPC405 family. This submission was reviewed by Thomas Doerfler <Thomas.Doerfler@imd-systems.de> who ensured it did not negatively impact the ppc403 BSPs. The submission and tracking process was captured as PR50. * vectors/align_h.S: Added ppc405 support.
Diffstat (limited to 'c/src')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/ChangeLog9
-rw-r--r--c/src/lib/libbsp/powerpc/psim/vectors/align_h.S8
2 files changed, 13 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/ChangeLog b/c/src/lib/libbsp/powerpc/psim/ChangeLog
index 2e7a8b6d9d..c86bcd9164 100644
--- a/c/src/lib/libbsp/powerpc/psim/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/psim/ChangeLog
@@ -1,3 +1,12 @@
+2001-11-08 Dennis Ehlin (ECS) <Dennis.Ehlin@ecs.ericsson.se>
+
+ This modification is part of the submitted modifications necessary to
+ support the IBM PPC405 family. This submission was reviewed by
+ Thomas Doerfler <Thomas.Doerfler@imd-systems.de> who ensured it did
+ not negatively impact the ppc403 BSPs. The submission and tracking
+ process was captured as PR50.
+ * vectors/align_h.S: Added ppc405 support.
+
2001-10-25 Joel Sherrill <joel@OARcorp.com>
* startup/linkcmds: Added _init and _fini.
diff --git a/c/src/lib/libbsp/powerpc/psim/vectors/align_h.S b/c/src/lib/libbsp/powerpc/psim/vectors/align_h.S
index ca4ac801cf..f33db5c445 100644
--- a/c/src/lib/libbsp/powerpc/psim/vectors/align_h.S
+++ b/c/src/lib/libbsp/powerpc/psim/vectors/align_h.S
@@ -121,13 +121,13 @@ align_h:
stw r8,Open_lr(r1)
stw r9,Open_cr(r1)
stw r10,Open_ctr(r1)
-#if defined(ppc403)
+#if defined(ppc403) || defined(ppc405)
mfspr r7, srr2 /* SRR 2 */
mfspr r8, srr3 /* SRR 3 */
#endif
mfspr r9, srr0 /* SRR 0 */
mfspr r10, srr1 /* SRR 1 */
-#if defined(ppc403)
+#if defined(ppc403) || defined(ppc405)
stw r7,Open_srr2(r1)
stw r8,Open_srr3(r1)
#endif
@@ -135,7 +135,7 @@ align_h:
stw r10,Open_srr1(r1)
/* Set up common registers */
-#if defined(ppc403)
+#if defined(ppc403) || defined(ppc405)
mfspr r5, dear /* DEAR: R5 is data exception address */
#endif
lwz r9,Open_srr0(r1) /* get faulting instruction */
@@ -431,7 +431,7 @@ align_complete:
mtlr r25
mtctr r26
mtcrf 0xFF, r27
-#if defined(ppc403)
+#if defined(ppc403) || defined(ppc405)
mtspr srr2, r28 /* SRR 2 */
mtspr srr3, r29 /* SRR 3 */
#endif