diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-04-17 05:57:57 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-04-17 05:57:57 +0000 |
commit | b60dc89330ceb9819020336314823963ca5c2af6 (patch) | |
tree | dc3a589ff70896de51b1f3d512fef697dcb91a4e /cpukit | |
parent | 2007-04-17 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-b60dc89330ceb9819020336314823963ca5c2af6.tar.bz2 |
Use Context_Control_fp* instead of void* for fp_contexts.
Eliminate evil casts.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/score/cpu/no_cpu/rtems/score/cpu.h | 6 | ||||
-rw-r--r-- | cpukit/score/cpu/powerpc/rtems/score/cpu.h | 6 | ||||
-rw-r--r-- | cpukit/score/cpu/sh/rtems/score/cpu.h | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h index eaef597df5..757530ade1 100644 --- a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h +++ b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h @@ -956,7 +956,7 @@ 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; \ } /* end of Context handler macros */ @@ -1244,7 +1244,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 ); /** @@ -1262,7 +1262,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 ); /** diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index b3115bb312..a3303afd44 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -598,7 +598,7 @@ void _CPU_Context_Initialize( #define _CPU_Context_Initialize_fp( _destination ) \ { \ - ((Context_Control_fp *) *((void **) _destination))->fpscr = PPC_INIT_FPSCR; \ + (*(_destination))->fpscr = PPC_INIT_FPSCR; \ } /* end of Context handler macros */ @@ -761,7 +761,7 @@ void _CPU_Context_restore( */ void _CPU_Context_save_fp( - void **fp_context_ptr + Context_Control_fp **fp_context_ptr ); /* @@ -771,7 +771,7 @@ void _CPU_Context_save_fp( */ void _CPU_Context_restore_fp( - void **fp_context_ptr + Context_Control_fp **fp_context_ptr ); void _CPU_Fatal_error( diff --git a/cpukit/score/cpu/sh/rtems/score/cpu.h b/cpukit/score/cpu/sh/rtems/score/cpu.h index b3da785134..cd6b66191e 100644 --- a/cpukit/score/cpu/sh/rtems/score/cpu.h +++ b/cpukit/score/cpu/sh/rtems/score/cpu.h @@ -695,7 +695,7 @@ SCORE_EXTERN void _CPU_Context_Initialize( #if SH_HAS_FPU #define _CPU_Context_Initialize_fp( _destination ) \ do { \ - *((Context_Control_fp *) *((void **) _destination)) = _CPU_Null_fp_context;\ + *(*(_destination)) = _CPU_Null_fp_context;\ } while(0) #else #define _CPU_Context_Initialize_fp( _destination ) \ @@ -925,7 +925,7 @@ void _CPU_Context_restore( */ void _CPU_Context_save_fp( - void **fp_context_ptr + Context_Control_fp **fp_context_ptr ); /* @@ -935,7 +935,7 @@ void _CPU_Context_save_fp( */ void _CPU_Context_restore_fp( - void **fp_context_ptr + Context_Control_fp **fp_context_ptr ); |