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/ChangeLog | 5 +++++ cpukit/score/cpu/m68k/rtems/score/cpu.h | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) (limited to 'cpukit/score/cpu/m68k') diff --git a/cpukit/score/cpu/m68k/ChangeLog b/cpukit/score/cpu/m68k/ChangeLog index faed3ff357..ff5fc4da85 100644 --- a/cpukit/score/cpu/m68k/ChangeLog +++ b/cpukit/score/cpu/m68k/ChangeLog @@ -1,3 +1,8 @@ +2009-08-24 Sebastian Huber + + * rtems/score/cpu.h: Define M68K_FP_STATE_SIZE also if used in + assembler files. + 2009-05-11 Sebastian Huber * cpu.c, cpu_asm.S, rtems/score/cpu.h: Cleanup of the floating point 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