[rtems commit] powerpc: Fix Altivec support
Sebastian Huber
sebh at rtems.org
Wed Jun 26 08:26:00 UTC 2013
Module: rtems
Branch: master
Commit: 56435e646cb90da25f3371568db2ec7be50e9a01
Changeset: http://git.rtems.org/rtems/commit/?id=56435e646cb90da25f3371568db2ec7be50e9a01
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jun 26 10:25:42 2013 +0200
powerpc: Fix Altivec support
Use the right context.
---
c/src/lib/libcpu/powerpc/new-exceptions/cpu.c | 2 +-
cpukit/score/cpu/powerpc/rtems/score/cpu.h | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
index 7ce7e2f..120ee07 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
@@ -129,6 +129,6 @@ void _CPU_Context_Initialize(
the_ppc_context->lr = (uint32_t) entry_point;
#ifdef __ALTIVEC__
- _CPU_Context_initialize_altivec(the_context);
+ _CPU_Context_initialize_altivec( the_ppc_context );
#endif
}
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index fdb2886..e3c4098 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -1082,8 +1082,8 @@ _CPU_Initialize_altivec(void);
void
_CPU_Context_switch_altivec(
- Context_Control *from,
- Context_Control *to
+ ppc_context *from,
+ ppc_context *to
);
/*
@@ -1094,7 +1094,7 @@ _CPU_Context_switch_altivec(
void
_CPU_Context_restore_altivec(
- Context_Control *ctxt
+ ppc_context *ctxt
);
/*
@@ -1105,7 +1105,7 @@ _CPU_Context_restore_altivec(
void
_CPU_Context_initialize_altivec(
- Context_Control *ctxt
+ ppc_context *ctxt
);
void _CPU_Fatal_error(
More information about the vc
mailing list