summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/unix/rtems/score/cpu.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-04-17 04:42:37 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-04-17 04:42:37 +0000
commitccb09f6b8670674ba56dff2ec5a5a76d5d496d9c (patch)
tree3eb44359b01f999097df091425299f67e5fcf860 /cpukit/score/cpu/unix/rtems/score/cpu.h
parent2007-04-16 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-ccb09f6b8670674ba56dff2ec5a5a76d5d496d9c.tar.bz2
Use Context_Control_fp* instead of void* for fp_contexts. Eliminate evil casts.
Diffstat (limited to 'cpukit/score/cpu/unix/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/unix/rtems/score/cpu.h6
1 files changed, 3 insertions, 3 deletions
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,