diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-23 12:27:53 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-09 14:05:46 +0100 |
commit | 2e19bfde2f557a3e5fdfb176de48a668c34545af (patch) | |
tree | faca84f06217fd47bf79212602dec5158ff45f3e /cpukit/score | |
parent | powerpc: Add PPC_STACK_ALIGN_POWER (diff) | |
download | rtems-2e19bfde2f557a3e5fdfb176de48a668c34545af.tar.bz2 |
powerpc: Use PPC_HAS_FPU
Provide floating point context support only if PPC_HAS_FPU == 1.
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/cpu/powerpc/rtems/score/cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index 29a2833ca7..26255a637c 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -392,6 +392,7 @@ static inline ppc_context *ppc_get_context( const Context_Control *context ) #ifndef ASM typedef struct { +#if (PPC_HAS_FPU == 1) /* The ABIs (PowerOpen/SVR4/EABI) only require saving f14-f31 over * procedure calls. However, this would mean that the interrupt * frame had to hold f0-f13, and the fpscr. And as the majority @@ -405,6 +406,7 @@ typedef struct { float f[32]; uint32_t fpscr; #endif +#endif /* (PPC_HAS_FPU == 1) */ } Context_Control_fp; typedef struct CPU_Interrupt_frame { |