From 0edd196e4684c41b75057a15dc3613a8e1b71344 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 17 Apr 2007 05:42:54 +0000 Subject: Use Context_Control_fp* instead of void* for fp_contexts. Eliminate evil casts. --- cpukit/score/cpu/mips/rtems/score/cpu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/score/cpu/mips/rtems/score/cpu.h') 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. -- cgit v1.2.3