summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/epiphany/rtems/score/cpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 11:39:23 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-17 09:15:01 +0100
commitaf3847a82af1a1eecce5a0b464d4685444040add (patch)
tree32a98ee07074d840a807d741589b3373aa9375a8 /cpukit/score/cpu/epiphany/rtems/score/cpu.h
parentsh: Avoid SCORE_EXTERN (diff)
downloadrtems-af3847a82af1a1eecce5a0b464d4685444040add.tar.bz2
epiphany: Delete superfluous _CPU_Null_fp_context
Update #2559.
Diffstat (limited to 'cpukit/score/cpu/epiphany/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/epiphany/rtems/score/cpu.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/cpukit/score/cpu/epiphany/rtems/score/cpu.h b/cpukit/score/cpu/epiphany/rtems/score/cpu.h
index aa786cd19a..24f91608d1 100644
--- a/cpukit/score/cpu/epiphany/rtems/score/cpu.h
+++ b/cpukit/score/cpu/epiphany/rtems/score/cpu.h
@@ -403,7 +403,6 @@ typedef Context_Control CPU_Interrupt_frame;
*/
#define CPU_CONTEXT_FP_SIZE 0
-SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context;
/*
* Amount of extra stack (above minimum stack size) required by
@@ -658,23 +657,8 @@ void _CPU_Context_Initialize(
#define _CPU_Context_Fp_start( _base, _offset ) \
( (void *) _Addresses_Add_offset( (_base), (_offset) ) )
-/*
- * This routine initializes the FP context area passed to it to.
- * There are a few standard ways in which to initialize the
- * floating point context. The code included for this macro assumes
- * that this is a CPU in which a "initial" FP context was saved into
- * _CPU_Null_fp_context and it simply copies it to the destination
- * context passed to it.
- *
- * Other models include (1) not doing anything, and (2) putting
- * a "null FP status word" in the correct place in the FP context.
- *
- */
-
#define _CPU_Context_Initialize_fp( _destination ) \
- { \
- *(*(_destination)) = _CPU_Null_fp_context; \
- }
+ memset( *( _destination ), 0, CPU_CONTEXT_FP_SIZE );
/* end of Context handler macros */