Use Context_Control_fp* instead of void* for fp_contexts.

Eliminate evil casts.
This commit is contained in:
Ralf Corsepius
2007-04-17 05:42:54 +00:00
parent 476838bf7a
commit 0edd196e46
2 changed files with 6 additions and 6 deletions

View File

@@ -951,7 +951,7 @@ void _CPU_ISR_Set_level( uint32_t ); /* in cpu.c */
#if ( CPU_HARDWARE_FP == TRUE )
#define _CPU_Context_Initialize_fp( _destination ) \
{ \
*((Context_Control_fp *) *((void **) _destination)) = _CPU_Null_fp_context; \
*(*(_destination)) = _CPU_Null_fp_context; \
}
#endif
@@ -1166,7 +1166,7 @@ void _CPU_Context_restore(
*/
void _CPU_Context_save_fp(
void **fp_context_ptr
Context_Control_fp **fp_context_ptr
);
/*
@@ -1176,7 +1176,7 @@ void _CPU_Context_save_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.

View File

@@ -1031,7 +1031,7 @@ uint32_t _CPU_ISR_Get_level( void );
#else
#define _CPU_Context_Initialize_fp( _destination ) \
{ \
*((Context_Control_fp *) *((void **) _destination)) = _CPU_Null_fp_context; \
*(*(_destination)) = _CPU_Null_fp_context; \
}
#endif
@@ -1323,7 +1323,7 @@ void _CPU_Context_restore(
* XXX document implementation including references if appropriate
*/
void _CPU_Context_save_fp(
void **fp_context_ptr
Context_Control_fp **fp_context_ptr
);
/**
@@ -1341,7 +1341,7 @@ void _CPU_Context_save_fp(
* XXX document implementation including references if appropriate
*/
void _CPU_Context_restore_fp(
void **fp_context_ptr
Context_Control_fp **fp_context_ptr
);
/**