diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-05-15 07:20:38 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-05-15 07:20:38 +0000 |
commit | 3b7e9bcfcdacb7445822d60f46033d94bc90bb34 (patch) | |
tree | c0f0337a3e9a353de98d0a712db0022db118497d /cpukit/score/cpu/m68k/cpu.c | |
parent | startup/bspstart.c: Fixed cache support functions. Enable FPU if the initial... (diff) | |
download | rtems-3b7e9bcfcdacb7445822d60f46033d94bc90bb34.tar.bz2 |
cpu.c, cpu_asm.S, rtems/score/cpu.h: Cleanup of the floating point context initialization, save and restore code.
Diffstat (limited to 'cpukit/score/cpu/m68k/cpu.c')
-rw-r--r-- | cpukit/score/cpu/m68k/cpu.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/score/cpu/m68k/cpu.c b/cpukit/score/cpu/m68k/cpu.c index dd1db6488c..38327dee12 100644 --- a/cpukit/score/cpu/m68k/cpu.c +++ b/cpukit/score/cpu/m68k/cpu.c @@ -14,6 +14,10 @@ #include <rtems/system.h> #include <rtems/score/isr.h> +#if defined( __mcoldfire__ ) && ( M68K_HAS_FPU == 1 ) + uint32_t _CPU_cacr_shadow; +#endif + /* _CPU_Initialize * * This routine performs processor dependent initialization. @@ -185,7 +189,7 @@ const unsigned char _CPU_m68k_BFFFO_table[256] = { #if (CPU_SOFTWARE_FP == TRUE) extern Context_Control_fp _fpCCR; -void CPU_Context_save_fp (Context_Control_fp **fp_context_ptr) +void _CPU_Context_save_fp (Context_Control_fp **fp_context_ptr) { Context_Control_fp *fp; @@ -194,7 +198,7 @@ void CPU_Context_save_fp (Context_Control_fp **fp_context_ptr) *fp = _fpCCR; } -void CPU_Context_restore_fp (Context_Control_fp **fp_context_ptr) +void _CPU_Context_restore_fp (Context_Control_fp **fp_context_ptr) { Context_Control_fp *fp; |