[rtems commit] sparc: Avoid SCORE_EXTERN

Sebastian Huber sebh at rtems.org
Wed Feb 17 08:43:12 UTC 2016


Module:    rtems
Branch:    master
Commit:    dab78624ebbdc97341497f9d0fe92ed7fe1c8167
Changeset: http://git.rtems.org/rtems/commit/?id=dab78624ebbdc97341497f9d0fe92ed7fe1c8167

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Feb  3 11:52:32 2016 +0100

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 5434355..899ed40 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 4dd57bf..c2b5f4c 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.




More information about the vc mailing list