From b60dc89330ceb9819020336314823963ca5c2af6 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 17 Apr 2007 05:57:57 +0000 Subject: Use Context_Control_fp* instead of void* for fp_contexts. Eliminate evil casts. --- cpukit/score/cpu/powerpc/rtems/score/cpu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/score/cpu/powerpc/rtems/score/cpu.h') diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index b3115bb312..a3303afd44 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -598,7 +598,7 @@ void _CPU_Context_Initialize( #define _CPU_Context_Initialize_fp( _destination ) \ { \ - ((Context_Control_fp *) *((void **) _destination))->fpscr = PPC_INIT_FPSCR; \ + (*(_destination))->fpscr = PPC_INIT_FPSCR; \ } /* end of Context handler macros */ @@ -761,7 +761,7 @@ void _CPU_Context_restore( */ void _CPU_Context_save_fp( - void **fp_context_ptr + Context_Control_fp **fp_context_ptr ); /* @@ -771,7 +771,7 @@ void _CPU_Context_save_fp( */ void _CPU_Context_restore_fp( - void **fp_context_ptr + Context_Control_fp **fp_context_ptr ); void _CPU_Fatal_error( -- cgit v1.2.3