summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/mips/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/mips/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/mips/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/mips/rtems/score/cpu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h
index 417738c189..7dd2862460 100644
--- a/cpukit/score/cpu/mips/rtems/score/cpu.h
+++ b/cpukit/score/cpu/mips/rtems/score/cpu.h
@@ -951,7 +951,7 @@ void _CPU_ISR_Set_level( uint32_t ); /* in cpu.c */
#if ( CPU_HARDWARE_FP == TRUE )
#define _CPU_Context_Initialize_fp( _destination ) \
{ \
- *((Context_Control_fp *) *((void **) _destination)) = _CPU_Null_fp_context; \
+ *(*(_destination)) = _CPU_Null_fp_context; \
}
#endif
@@ -1166,7 +1166,7 @@ void _CPU_Context_restore(
*/
void _CPU_Context_save_fp(
- void **fp_context_ptr
+ Context_Control_fp **fp_context_ptr
);
/*
@@ -1176,7 +1176,7 @@ void _CPU_Context_save_fp(
*/
void _CPU_Context_restore_fp(
- void **fp_context_ptr
+ Context_Control_fp **fp_context_ptr
);
/* The following routine swaps the endian format of an unsigned int.