summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/include/rtems
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-07-11 14:56:04 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-07-11 14:56:04 +0000
commit270e3cce9610120bfc3b818bde99ffaf8f880940 (patch)
treeb6a941caa1d5e125540fb939a7a22e51b8419230 /c/src/exec/score/include/rtems
parentUpdated to new patch. (diff)
downloadrtems-270e3cce9610120bfc3b818bde99ffaf8f880940.tar.bz2
Patch rtems-rc-20000711-1-cvs.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that decouples exec/ for the sh, m68k and i960 from targopts.h. NOTE: The change to system.h is a hack to enable cpuopts.h for some targets, but keep using targopts.h for others - I know it does *not* work for sparc, mips, i386 and ppc. This will have to be addressed as work continues on multilibing.
Diffstat (limited to 'c/src/exec/score/include/rtems')
-rw-r--r--c/src/exec/score/include/rtems/system.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/c/src/exec/score/include/rtems/system.h b/c/src/exec/score/include/rtems/system.h
index 5e9cabb448..f0c3c6f3e5 100644
--- a/c/src/exec/score/include/rtems/system.h
+++ b/c/src/exec/score/include/rtems/system.h
@@ -28,10 +28,17 @@ extern "C" {
*/
/*
- * FIXME: Instead of targopts.h, cpuopts.h should be included here.
- * #include <rtems/score/cpuopts.h>
+ * FIXME: cpuopts.h should be included here.
*/
+#if defined(__sh__) \
+ || defined(__mc68000__) \
+ || defined(__i960__)
+ /* these cpus are ready to apply cpuopts.h */
+#include <rtems/score/cpuopts.h>
+#else
+ /* fallback to targopts.h */
#include <rtems/score/targopts.h>
+#endif
/*
* The following insures that all data is declared in the space