summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-20 13:01:02 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-20 13:04:54 +0200
commitd30c2cc2881108f1622f29547f986e3f5c15f436 (patch)
treec193b4b7e776b59ccb34e36c2b9ac50e84707190
parentpowerpc: Fix TLS support (diff)
downloadrtems-d30c2cc2881108f1622f29547f986e3f5c15f436.tar.bz2
powerpc: Fix PPC_CONTEXT_VOLATILE_SIZE
Account for legacy AltiVec context.
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index 53b4bd21fa..28f9a25eba 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -398,6 +398,10 @@ static inline ppc_context *ppc_get_context( const Context_Control *context )
#define PPC_CONTEXT_VOLATILE_SIZE PPC_CONTEXT_OFFSET_F( 32 )
#elif defined(PPC_MULTILIB_ALTIVEC)
#define PPC_CONTEXT_VOLATILE_SIZE (PPC_CONTEXT_OFFSET_VRSAVE + 4)
+#elif defined(__ALTIVEC__)
+ #define PPC_CONTEXT_VOLATILE_SIZE \
+ (PPC_CONTEXT_GPR_OFFSET( 32 ) + 8 \
+ + 16 * 12 + 32 + PPC_DEFAULT_CACHE_LINE_SIZE)
#else
#define PPC_CONTEXT_VOLATILE_SIZE (PPC_CONTEXT_GPR_OFFSET( 32 ) + 8)
#endif