summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/nios2/rtems/score/cpu.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-04-17 05:42:54 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-04-17 05:42:54 +0000
commit0edd196e4684c41b75057a15dc3613a8e1b71344 (patch)
tree7300d8ead7c575bc8b1c0363433df51c23ed16e4 /cpukit/score/cpu/nios2/rtems/score/cpu.h
parent2007-04-17 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-0edd196e4684c41b75057a15dc3613a8e1b71344.tar.bz2
Use Context_Control_fp* instead of void* for fp_contexts.
Eliminate evil casts.
Diffstat (limited to 'cpukit/score/cpu/nios2/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/nios2/rtems/score/cpu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/cpu/nios2/rtems/score/cpu.h b/cpukit/score/cpu/nios2/rtems/score/cpu.h
index f05641def9..a2ee099552 100644
--- a/cpukit/score/cpu/nios2/rtems/score/cpu.h
+++ b/cpukit/score/cpu/nios2/rtems/score/cpu.h
@@ -1031,7 +1031,7 @@ uint32_t _CPU_ISR_Get_level( void );
#else
#define _CPU_Context_Initialize_fp( _destination ) \
{ \
- *((Context_Control_fp *) *((void **) _destination)) = _CPU_Null_fp_context; \
+ *(*(_destination)) = _CPU_Null_fp_context; \
}
#endif
@@ -1323,7 +1323,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
);
/**
@@ -1341,7 +1341,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
);
/**