From de202e7204715267e2439f0e87c4b83c143ecddf Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 8 Nov 2001 23:48:52 +0000 Subject: 2001-11-08 Dennis Ehlin (ECS) This modification is part of the submitted modifications necessary to support the IBM PPC405 family. This submission was reviewed by Thomas Doerfler 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. --- c/src/lib/libbsp/powerpc/psim/ChangeLog | 9 +++++++++ c/src/lib/libbsp/powerpc/psim/vectors/align_h.S | 8 ++++---- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'c/src') 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) + + This modification is part of the submitted modifications necessary to + support the IBM PPC405 family. This submission was reviewed by + Thomas Doerfler 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 * 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 -- cgit v1.2.3