forked from Imagelibrary/rtems
Use Context_Control_fp* instead of void* for fp_contexts.
Eliminate evil casts.
This commit is contained in:
@@ -1036,7 +1036,7 @@ void _CPU_Context_Initialize(
|
||||
*/
|
||||
#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 */
|
||||
@@ -1330,7 +1330,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
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -1348,7 +1348,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
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
@@ -940,7 +940,7 @@ void _CPU_Context_Initialize(
|
||||
|
||||
#define _CPU_Context_Initialize_fp( _destination ) \
|
||||
do { \
|
||||
*((Context_Control_fp *) *((void **) _destination)) = _CPU_Null_fp_context; \
|
||||
*(*(_destination)) = _CPU_Null_fp_context; \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
@@ -1191,7 +1191,7 @@ void _CPU_Context_restore(
|
||||
|
||||
#if ( C4X_HAS_FPU == 1 )
|
||||
void _CPU_Context_save_fp(
|
||||
void **fp_context_ptr
|
||||
Context_Control_fp **fp_context_ptr
|
||||
);
|
||||
#endif
|
||||
|
||||
@@ -1207,7 +1207,7 @@ void _CPU_Context_save_fp(
|
||||
|
||||
#if ( C4X_HAS_FPU == 1 )
|
||||
void _CPU_Context_restore_fp(
|
||||
void **fp_context_ptr
|
||||
Context_Control_fp **fp_context_ptr
|
||||
);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user