diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-23 11:38:34 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-09 14:05:08 +0100 |
commit | 7c16e1a5143b92228d9f3fac7fe653e5c3e4b880 (patch) | |
tree | 55eaf881a085547d6589fbe032df825b86417954 /cpukit/score/cpu/powerpc/rtems/score/cpu.h | |
parent | powerpc: Use PPC_DEFAULT_CACHE_LINE_SIZE (diff) | |
download | rtems-7c16e1a5143b92228d9f3fac7fe653e5c3e4b880.tar.bz2 |
powerpc: Set PPC_DEFAULT_CACHE_LINE_SIZE for e6500
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/powerpc/rtems/score/cpu.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index 889ecdf696..29a2833ca7 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -358,13 +358,13 @@ static inline ppc_context *ppc_get_context( const Context_Control *context ) #endif #endif /* ASM */ -#define PPC_CONTEXT_OFFSET_GPR1 32 -#define PPC_CONTEXT_OFFSET_MSR 36 -#define PPC_CONTEXT_OFFSET_LR 40 -#define PPC_CONTEXT_OFFSET_CR 44 +#define PPC_CONTEXT_OFFSET_GPR1 (PPC_DEFAULT_CACHE_LINE_SIZE + 0) +#define PPC_CONTEXT_OFFSET_MSR (PPC_DEFAULT_CACHE_LINE_SIZE + 4) +#define PPC_CONTEXT_OFFSET_LR (PPC_DEFAULT_CACHE_LINE_SIZE + 8) +#define PPC_CONTEXT_OFFSET_CR (PPC_DEFAULT_CACHE_LINE_SIZE + 12) #define PPC_CONTEXT_GPR_OFFSET( gpr ) \ - (((gpr) - 14) * PPC_GPR_SIZE + 48) + (((gpr) - 14) * PPC_GPR_SIZE + PPC_DEFAULT_CACHE_LINE_SIZE + 16) #define PPC_CONTEXT_OFFSET_GPR14 PPC_CONTEXT_GPR_OFFSET( 14 ) #define PPC_CONTEXT_OFFSET_GPR15 PPC_CONTEXT_GPR_OFFSET( 15 ) |