summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/mips/rtems/score/mips.h
diff options
context:
space:
mode:
authorGreg Menke <gregory.menke@gsfc.nasa.gov>2004-12-06 20:29:51 +0000
committerGreg Menke <gregory.menke@gsfc.nasa.gov>2004-12-06 20:29:51 +0000
commit5194a28430a6f69264c10b3dcc91e53f7d54f919 (patch)
tree4850b03ecd680755d71020361eb744aecbaa2378 /cpukit/score/cpu/mips/rtems/score/mips.h
parentChangelog, PR728 & PR729 (diff)
downloadrtems-5194a28430a6f69264c10b3dcc91e53f7d54f919.tar.bz2
PR 730
* cpu_asm.S: Collected PR 601 changes for commit to cvshead for rtems-4.7
Diffstat (limited to '')
-rw-r--r--cpukit/score/cpu/mips/rtems/score/mips.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/cpukit/score/cpu/mips/rtems/score/mips.h b/cpukit/score/cpu/mips/rtems/score/mips.h
index 341dd89d3e..ab75c9a8d1 100644
--- a/cpukit/score/cpu/mips/rtems/score/mips.h
+++ b/cpukit/score/cpu/mips/rtems/score/mips.h
@@ -30,7 +30,7 @@ extern "C" {
* NOTE: XXX what about SR_ERL?
*/
-#if __mips == 3
+#if (__mips == 3) || (__mips == 32)
#ifdef ASM
#define SR_INTERRUPT_ENABLE_BITS 0x01
#else
@@ -59,9 +59,10 @@ extern "C" {
#define MIPS_HAS_FPU 1
#endif
+
#if (__mips == 1)
#define CPU_MODEL_NAME "ISA Level 1 or 2"
-#elif (__mips == 3)
+#elif (__mips == 3) || (__mips == 32)
#if defined(__mips64)
#define CPU_MODEL_NAME "ISA Level 4"
#else
@@ -218,6 +219,8 @@ extern "C" {
* Access FCR31
*/
+#if ( MIPS_HAS_FPU == 1 )
+
#define mips_get_fcr31( _x ) \
do { \
asm volatile( "cfc1 %0, $31; nop" : "=r" (_x) : ); \
@@ -230,6 +233,12 @@ extern "C" {
asm volatile( "ctc1 %0, $31; nop" : : "r" (__x) ); \
} while(0)
+#else
+
+#define mips_get_fcr31( _x )
+#define mips_set_fcr31( _x )
+
+#endif
/*
* Manipulate interrupt mask
@@ -271,3 +280,4 @@ extern "C" {
#endif
#endif /* ! _INCLUDE_MIPS_h */
+/* end of include file */