summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2009-12-02 01:41:57 +0000
committerTill Straumann <strauman@slac.stanford.edu>2009-12-02 01:41:57 +0000
commitc7f8408d31287d45ee722bd941a8057c67e7f274 (patch)
treebb52c0e1184a42a570e0bab6f109763b0d25bbab /c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
parent2009-12-01 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-c7f8408d31287d45ee722bd941a8057c67e7f274.tar.bz2
2009-12-01 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/cpu.c, new-exceptions/cpu_asm.S, new-exceptions/bspsupport/ppc_exc_asm_macros.h, new-exceptions/bspsupport/ppc_exc_initialize.c, new-exceptions/bspsupport/vectors.h: Added AltiVec support (save/restore volatile vregs across exceptions).
Diffstat (limited to 'c/src/lib/libcpu/powerpc/new-exceptions/cpu.c')
-rw-r--r--c/src/lib/libcpu/powerpc/new-exceptions/cpu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
index 4f42cb5b00..0c269f71e6 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
@@ -33,6 +33,7 @@
#include <rtems/score/context.h>
#include <rtems/score/thread.h>
#include <rtems/score/interr.h>
+#include <rtems/score/cpu.h>
#include <rtems/powerpc/powerpc.h>
/* _CPU_Initialize
@@ -45,6 +46,9 @@
void _CPU_Initialize(void)
{
/* Do nothing */
+#ifdef __ALTIVEC__
+ _CPU_Initialize_altivec();
+#endif
}
/*PAGE
@@ -144,6 +148,10 @@ void _CPU_Context_Initialize(
#else
#error unsupported PPC_ABI
#endif
+
+#ifdef __ALTIVEC__
+ _CPU_Context_initialize_altivec(the_context);
+#endif
}
/*PAGE