diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2009-12-02 01:41:57 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2009-12-02 01:41:57 +0000 |
commit | c7f8408d31287d45ee722bd941a8057c67e7f274 (patch) | |
tree | bb52c0e1184a42a570e0bab6f109763b0d25bbab /c/src/lib/libcpu/powerpc/new-exceptions/cpu.c | |
parent | 2009-12-01 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-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.c | 8 |
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 |