[rtems commit] mips: Avoid SCORE_EXTERN
Sebastian Huber
sebh at rtems.org
Wed Feb 17 08:42:38 UTC 2016
Module: rtems
Branch: master
Commit: d638aca61b6d87a7912f634b3820b0e64efb0767
Changeset: http://git.rtems.org/rtems/commit/?id=d638aca61b6d87a7912f634b3820b0e64efb0767
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Feb 3 11:41:29 2016 +0100
mips: Avoid SCORE_EXTERN
Update #2559.
---
cpukit/score/cpu/mips/cpu.c | 4 ++++
cpukit/score/cpu/mips/rtems/score/cpu.h | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/cpukit/score/cpu/mips/cpu.c b/cpukit/score/cpu/mips/cpu.c
index cb6c664..fe89a10 100644
--- a/cpukit/score/cpu/mips/cpu.c
+++ b/cpukit/score/cpu/mips/cpu.c
@@ -54,6 +54,10 @@
#include <rtems/score/isr.h>
#include <rtems/score/wkspace.h>
+#if CPU_HARDWARE_FP
+Context_Control_fp _CPU_Null_fp_context;
+#endif
+
/*
** Exception stack frame pointer used in cpu_asm to pass the exception stack frame
** address to the context switch code.
diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h
index 01bd29a..cb66b89 100644
--- a/cpukit/score/cpu/mips/rtems/score/cpu.h
+++ b/cpukit/score/cpu/mips/rtems/score/cpu.h
@@ -590,7 +590,7 @@ typedef CPU_Interrupt_frame CPU_Exception_frame;
* _CPU_Context_Initialize.
*/
-SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context;
+extern Context_Control_fp _CPU_Null_fp_context;
/*
* Nothing prevents the porter from declaring more CPU specific variables.
More information about the vc
mailing list