From da422590aef9807b761075c6e61bce8b64267543 Mon Sep 17 00:00:00 2001 From: Thomas Doerfler Date: Mon, 24 Aug 2009 10:29:10 +0000 Subject: Define M68K_FP_STATE_SIZE also if used in assembler files. --- cpukit/score/cpu/m68k/rtems/score/cpu.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'cpukit/score/cpu/m68k/rtems') 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 /* -- cgit v1.2.3