Use Context_Control_fp* instead of void* for fp_contexts.

Eliminate evil casts.
This commit is contained in:
Ralf Corsepius
2007-04-17 05:31:27 +00:00
parent 231aac4fc1
commit ce1093e07c

View File

@@ -857,7 +857,7 @@ uint32_t _CPU_ISR_Get_level( void );
#define _CPU_Context_Initialize_fp( _destination ) \ #define _CPU_Context_Initialize_fp( _destination ) \
{ \ { \
*((Context_Control_fp *) *((void **) _destination)) = _CPU_Null_fp_context; \ *(*(_destination)) = _CPU_Null_fp_context; \
} }
/* end of Context handler macros */ /* end of Context handler macros */
@@ -1116,7 +1116,7 @@ void _CPU_Context_restore(
*/ */
void _CPU_Context_save_fp( void _CPU_Context_save_fp(
void **fp_context_ptr Context_Control_fp **fp_context_ptr
); );
/* /*
@@ -1130,7 +1130,7 @@ void _CPU_Context_save_fp(
*/ */
void _CPU_Context_restore_fp( void _CPU_Context_restore_fp(
void **fp_context_ptr Context_Control_fp **fp_context_ptr
); );
/* The following routine swaps the endian format of an unsigned int. /* The following routine swaps the endian format of an unsigned int.