summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/sh
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-18 21:30:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-18 21:30:12 +0000
commit97c465c223abd740c2fc0415a0874f413268b3af (patch)
tree1785afc1ee8039fbd534a992d9f397746fafc2be /c/src/exec/score/cpu/sh
parentPatch from "John M. Mills" <jmills@tga.com> with subsequent cleanup from (diff)
downloadrtems-97c465c223abd740c2fc0415a0874f413268b3af.tar.bz2
Minor cleanup to reduce the code space.
Diffstat (limited to 'c/src/exec/score/cpu/sh')
-rw-r--r--c/src/exec/score/cpu/sh/rtems/score/sh.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/c/src/exec/score/cpu/sh/rtems/score/sh.h b/c/src/exec/score/cpu/sh/rtems/score/sh.h
index 45228c5fe0..f09d1d66c2 100644
--- a/c/src/exec/score/cpu/sh/rtems/score/sh.h
+++ b/c/src/exec/score/cpu/sh/rtems/score/sh.h
@@ -40,29 +40,24 @@ extern "C" {
*/
#if defined(sh7032)
-
-#define CPU_MODEL_NAME "SH 7032"
+#define CPU_MODEL_NAME "SH7032"
#define SH_HAS_FPU 0
-/*
- * If the following macro is set to 0 there will be no software irq stack
- */
-#define SH_HAS_SEPARATE_STACKS 1
-
#elif defined (sh7045)
-
-#define CPU_MODEL_NAME "SH 7045"
+#define CPU_MODEL_NAME "SH7045"
#define SH_HAS_FPU 0
+#else
+#error "Unsupported CPU Model"
+
+#endif
+
/*
* If the following macro is set to 0 there will be no software irq stack
*/
-#define SH_HAS_SEPARATE_STACKS 1
-#else
-
-#error "Unsupported CPU Model"
-
+#ifndef SH_HAS_SEPARATE_STACKS
+#define SH_HAS_SEPARATE_STACKS 1
#endif
/*