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/score/cpu/sh | |
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/score/cpu/sh')
-rw-r--r-- | cpukit/score/cpu/sh/rtems/score/cpu.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 ); |