From 27bfcd88f7e65c81b406afa85d81b060e2ea24e3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 25 Jan 2017 14:32:02 +0100 Subject: score: Delete _CPU_Context_Fp_start() Since the FP area pointer is passed by reference in _CPU_Context_Initialize_fp() the optional FP area adjustment via _CPU_Context_Fp_start() is superfluous. It is also wrong with respect to memory management, e.g. pointer passed to _Workspace_Free() may be not the one returned by _Workspace_Allocate(). Close #1400. --- cpukit/score/cpu/i386/rtems/score/cpu.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'cpukit/score/cpu/i386/rtems') diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h index 052e53f5e3..ace26f396c 100644 --- a/cpukit/score/cpu/i386/rtems/score/cpu.h +++ b/cpukit/score/cpu/i386/rtems/score/cpu.h @@ -508,9 +508,6 @@ uint32_t _CPU_ISR_Get_level( void ); } #endif -#define _CPU_Context_Fp_start( _base, _offset ) \ - ( (void *) _Addresses_Add_offset( (_base), (_offset) ) ) - #define _CPU_Context_Initialize_fp( _fp_area ) \ { \ memcpy( *_fp_area, &_CPU_Null_fp_context, CPU_CONTEXT_FP_SIZE ); \ -- cgit v1.2.3