summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/a29k/rtems/score/a29k.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-05-28 20:14:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-05-28 20:14:45 +0000
commita3f5b6be311597f0bb99af6599b7f81f26104e33 (patch)
tree7bcb13ec8008eed08a521dbfda4223f7e9bde3e6 /c/src/exec/score/cpu/a29k/rtems/score/a29k.h
parentPatch rtems-rc-4.5.0-21.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-a3f5b6be311597f0bb99af6599b7f81f26104e33.tar.bz2
Added a special CPU model of "rtems_multilib". This is the beginnings
of an experiment to determine what it will take to multilib most of RTEMS per GNU multilib conventions. It is thought that only interrupt processing and IO are not multlib-able. This means that a BSP Kit should include IRQ processing from score/cpu, all peripheral support (header files from score/cpu, libchip, and libcpu), and the BSPs themselves. The rest of RTEMS should be multlib-able. But to do this, all RTEMS CPU model feature flags must be derivable from gcc cpp predefines. By configuring the bare bsp with the rtems_multilib CPU model, you can try any combination of CPU CFLAGS and see well how the logic in that section of the <CPU>.h works. Once all CPU multilib variations can be built, then RTEMS proper can be multilib'ed and separated from the BSPs.
Diffstat (limited to 'c/src/exec/score/cpu/a29k/rtems/score/a29k.h')
-rw-r--r--c/src/exec/score/cpu/a29k/rtems/score/a29k.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/c/src/exec/score/cpu/a29k/rtems/score/a29k.h b/c/src/exec/score/cpu/a29k/rtems/score/a29k.h
index 7dd9030609..e1e359d075 100644
--- a/c/src/exec/score/cpu/a29k/rtems/score/a29k.h
+++ b/c/src/exec/score/cpu/a29k/rtems/score/a29k.h
@@ -28,7 +28,16 @@ extern "C" {
* of the family.
*/
-#if defined(a29205)
+#if defined(rtems_multilib)
+/*
+ * Figure out all CPU Model Feature Flags based upon compiler
+ * predefines.
+ */
+
+#define CPU_MODEL_NAME "rtems_multilib"
+#define A29K_HAS_FPU 0
+
+#elif defined(a29205)
#define CPU_MODEL_NAME "a29205"
#define A29K_HAS_FPU 0