diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-03 11:56:09 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-17 09:15:01 +0100 |
commit | 6df892688513d2559d493c394f762e38b8267f2c (patch) | |
tree | 9d11eb9eb6766100bb1a05fe0bdade23ad57ad41 /cpukit/score/cpu/moxie/rtems/score/cpu.h | |
parent | bfin: Delete superfluous _CPU_Null_fp_context (diff) | |
download | rtems-6df892688513d2559d493c394f762e38b8267f2c.tar.bz2 |
moxie: Delete superfluous _CPU_Null_fp_context
Update #2559.
Diffstat (limited to 'cpukit/score/cpu/moxie/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/moxie/rtems/score/cpu.h | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/cpukit/score/cpu/moxie/rtems/score/cpu.h b/cpukit/score/cpu/moxie/rtems/score/cpu.h index 4e4bbad07a..9f0b9b4bde 100644 --- a/cpukit/score/cpu/moxie/rtems/score/cpu.h +++ b/cpukit/score/cpu/moxie/rtems/score/cpu.h @@ -371,18 +371,6 @@ typedef struct { } CPU_Interrupt_frame; /* - * This variable is optional. It is used on CPUs on which it is difficult - * to generate an "uninitialized" FP context. It is filled in by - * _CPU_Initialize and copied into the task's FP context area during - * _CPU_Context_Initialize. - * - * MOXIE Specific Information: - * - * XXX - */ -SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context; - -/* * Nothing prevents the porter from declaring more CPU specific variables. * * MOXIE Specific Information: @@ -666,25 +654,8 @@ uint32_t _CPU_ISR_Get_level( void ); #define _CPU_Context_Fp_start( _base, _offset ) \ ( (void *) (_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. - * - * MOXIE Specific Information: - * - * XXX - */ #define _CPU_Context_Initialize_fp( _destination ) \ - { \ - *(*(_destination)) = _CPU_Null_fp_context; \ - } + memset( *( _destination ), 0, CPU_CONTEXT_FP_SIZE ); /* end of Context handler macros */ |