From ccb09f6b8670674ba56dff2ec5a5a76d5d496d9c Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 17 Apr 2007 04:42:37 +0000 Subject: Use Context_Control_fp* instead of void* for fp_contexts. Eliminate evil casts. --- cpukit/score/cpu/unix/rtems/score/cpu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/score/cpu/unix/rtems/score/cpu.h') diff --git a/cpukit/score/cpu/unix/rtems/score/cpu.h b/cpukit/score/cpu/unix/rtems/score/cpu.h index f2058fc655..98861b1556 100644 --- a/cpukit/score/cpu/unix/rtems/score/cpu.h +++ b/cpukit/score/cpu/unix/rtems/score/cpu.h @@ -777,14 +777,14 @@ uint32_t _CPU_ISR_Get_level( void ); #define _CPU_Context_Initialize_fp( _destination ) \ { \ - *((Context_Control_fp *) *((void **) _destination)) = _CPU_Null_fp_context; \ + *(*(_destination)) = _CPU_Null_fp_context; \ } #define _CPU_Context_save_fp( _fp_context ) \ - _CPU_Save_float_context( *(Context_Control_fp **)(_fp_context)) + _CPU_Save_float_context(*(_fp_context)) #define _CPU_Context_restore_fp( _fp_context ) \ - _CPU_Restore_float_context( *(Context_Control_fp **)(_fp_context)) + _CPU_Restore_float_context(*(_fp_context)) extern void _CPU_Context_Initialize( Context_Control *_the_context, -- cgit v1.2.3