summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems/score/cpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-23 12:27:53 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-09 14:05:46 +0100
commit2e19bfde2f557a3e5fdfb176de48a668c34545af (patch)
treefaca84f06217fd47bf79212602dec5158ff45f3e /cpukit/score/cpu/powerpc/rtems/score/cpu.h
parentpowerpc: Add PPC_STACK_ALIGN_POWER (diff)
downloadrtems-2e19bfde2f557a3e5fdfb176de48a668c34545af.tar.bz2
powerpc: Use PPC_HAS_FPU
Provide floating point context support only if PPC_HAS_FPU == 1.
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h2
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 {