diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-08-24 10:29:10 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-08-24 10:29:10 +0000 |
commit | da422590aef9807b761075c6e61bce8b64267543 (patch) | |
tree | dccf91b3f3cdb636a11945b433f81ff48771d3c6 /cpukit/score/cpu/m68k/rtems/score | |
parent | 2009-08-22 Roxana Leontie <roxana.leontie@gmail.com> (diff) | |
download | rtems-da422590aef9807b761075c6e61bce8b64267543.tar.bz2 |
Define M68K_FP_STATE_SIZE also if used in assembler files.
Diffstat (limited to 'cpukit/score/cpu/m68k/rtems/score')
-rw-r--r-- | cpukit/score/cpu/m68k/rtems/score/cpu.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/cpukit/score/cpu/m68k/rtems/score/cpu.h b/cpukit/score/cpu/m68k/rtems/score/cpu.h index 85ea4247cd..672e233a7f 100644 --- a/cpukit/score/cpu/m68k/rtems/score/cpu.h +++ b/cpukit/score/cpu/m68k/rtems/score/cpu.h @@ -116,6 +116,14 @@ extern "C" { #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE +#if ( CPU_HARDWARE_FP == TRUE ) && !defined( __mcoldfire__ ) + #if defined( __mc68060__ ) + #define M68K_FP_STATE_SIZE 16 + #else + #define M68K_FP_STATE_SIZE 216 + #endif +#endif + #ifndef ASM /* structures */ @@ -252,12 +260,6 @@ typedef struct { * FP context save area for the M68881/M68882 and 68060 numeric coprocessors. */ - #if defined( __mc68060__ ) - #define M68K_FP_STATE_SIZE 16 - #else - #define M68K_FP_STATE_SIZE 216 - #endif - typedef struct { /* * M68K_FP_STATE_SIZE bytes for FSAVE/FRESTORE @@ -282,7 +284,7 @@ typedef struct { *(--(_fp_context)) = 0; \ *(_fp_area) = (void *)(_fp_context); \ } - #endif + #endif #endif /* |