summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/score/cpu/sparc/cpu.c4
-rw-r--r--cpukit/score/cpu/sparc/rtems/score/cpu.h2
2 files changed, 5 insertions, 1 deletions
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.