From dab78624ebbdc97341497f9d0fe92ed7fe1c8167 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 3 Feb 2016 11:52:32 +0100 Subject: sparc: Avoid SCORE_EXTERN Update #2559. --- cpukit/score/cpu/sparc/cpu.c | 4 ++++ cpukit/score/cpu/sparc/rtems/score/cpu.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cpukit/score/cpu/sparc/cpu.c b/cpukit/score/cpu/sparc/cpu.c index 5434355618..899ed4087b 100644 --- a/cpukit/score/cpu/sparc/cpu.c +++ b/cpukit/score/cpu/sparc/cpu.c @@ -116,6 +116,10 @@ RTEMS_STATIC_ASSERT( CPU_Interrupt_frame_alignment ); +#if (SPARC_HAS_FPU == 1) && !defined(SPARC_USE_SAFE_FP_SUPPORT) +Context_Control_fp _CPU_Null_fp_context; +#endif + /* * _CPU_Initialize * diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h index 4dd57bf4b5..c2b5f4c84f 100644 --- a/cpukit/score/cpu/sparc/rtems/score/cpu.h +++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h @@ -785,7 +785,7 @@ typedef struct { * It is filled in by _CPU_Initialize and copied into the task's FP * context area during _CPU_Context_Initialize. */ -SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context; +extern Context_Control_fp _CPU_Null_fp_context; /** * The following type defines an entry in the SPARC's trap table. -- cgit v1.2.3