forked from Imagelibrary/rtems
Define M68K_FP_STATE_SIZE also if used in assembler files.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* rtems/score/cpu.h: Define M68K_FP_STATE_SIZE also if used in
|
||||
assembler files.
|
||||
|
||||
2009-05-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* cpu.c, cpu_asm.S, rtems/score/cpu.h: Cleanup of the floating point
|
||||
|
||||
@@ -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
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user