2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>

* rtems/score/cpu.h: Fix type when initializing FP context.
This commit is contained in:
Joel Sherrill
2008-08-19 18:46:20 +00:00
parent 14d1db6cdb
commit 1a7c300001
2 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Fix type when initializing FP context.
2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Add extern for bfffo table and rename it to

View File

@@ -442,18 +442,18 @@ uint32_t _CPU_ISR_Get_level( void );
#if (defined(__mcoldfire__) && ( M68K_HAS_FPU == 1 ))
#define _CPU_Context_Initialize_fp( _fp_area ) \
{ uint32_t *_fp_context = (uint32_t *)*(_fp_area); \
{ uint32_t *_fp_context = (uint32_t *)*(_fp_area); \
\
*(--(_fp_context)) = 0; \
*(_fp_area) = (uint8_t *)(_fp_context); \
*(_fp_area) = (void *)(_fp_context); \
asm volatile("movl %0,%%macsr": : "d" (0) ); \
}
#else
#define _CPU_Context_Initialize_fp( _fp_area ) \
{ uint32_t *_fp_context = (uint32_t *)*(_fp_area); \
{ uint32_t *_fp_context = (uint32_t *)*(_fp_area); \
\
*(--(_fp_context)) = 0; \
*(_fp_area) = (uint8_t *)(_fp_context); \
*(_fp_area) = (void *)(_fp_context); \
}
#endif
#endif