summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2011-07-14 14:44:47 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2011-07-14 14:44:47 +0000
commit58679ac700107ff60ac6f7e0e642ae72dff99f8e (patch)
tree8beefdd342ef16fdaef08c349bc6168f2c1166c8 /c
parent2011-07-13 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-58679ac700107ff60ac6f7e0e642ae72dff99f8e.tar.bz2
2011-07-14 Jennifer Averett
* make/custom/pcp4.cfg: New file.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/i386/pc386/ChangeLog4
-rw-r--r--c/src/lib/libbsp/i386/pc386/make/custom/pcp4.cfg37
2 files changed, 41 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/ChangeLog b/c/src/lib/libbsp/i386/pc386/ChangeLog
index ca2c6a6690..16e2af963f 100644
--- a/c/src/lib/libbsp/i386/pc386/ChangeLog
+++ b/c/src/lib/libbsp/i386/pc386/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-14 Jennifer Averett
+
+ * make/custom/pcp4.cfg: New file.
+
2011-06-19 Ralf Corsépius <ralf.corsepius@rtems.org>
* Makefile.am: Fix broken path to clockdrv_shell.h.
diff --git a/c/src/lib/libbsp/i386/pc386/make/custom/pcp4.cfg b/c/src/lib/libbsp/i386/pc386/make/custom/pcp4.cfg
new file mode 100644
index 0000000000..68babd64a4
--- /dev/null
+++ b/c/src/lib/libbsp/i386/pc386/make/custom/pcp4.cfg
@@ -0,0 +1,37 @@
+#
+# Configuration file for a PC using a Pentium Class CPU
+#
+# $Id$
+#
+
+RTEMS_CPU_MODEL=pentium
+
+# This contains the compiler options necessary to select the CPU model
+# and enable architecture-specific features and extensions.
+
+# Note that the vanilla gcc multilibs for RTEMS are a joke. The
+# variants only differ by a -mtune=xxx option which merely 'optimizes'
+# for 'xxx' but does not use the full instruction set 'xxx' may implement.
+# (fully bwd compatible with i386).
+#
+# I'd recommend to roll your own set of (useful) multilibs instead...
+#
+# Useful variants would be
+# <default> (i386) (generic 386 with hard-float)
+# -msoft-float (generic 386 with soft-float)
+# -march=pentium4 (P4 with sse2)
+#
+# Note also: we give the -mtune=pentium option here only so that at least the
+# variant optimized for pentium (w/o using any pentium-specific
+# features) is used (assuming you use the vanilla RTEMS multilibs).
+#
+# And: The only sse-related feature the RTEMS support really needs is
+# fxsave/fxrstor. You can build with -msse, -msse2 or -msse3,
+# depending on your CPU.
+# There are run-time checks resulting in a 'panic' if code
+# compiled for e.g. -msse3 is executed on a CPU that only
+# supports sse2, though.
+CPU_CFLAGS = -mtune=pentium4 -march=pentium4 -msse3
+
+include $(RTEMS_ROOT)/make/custom/pc386.cfg
+