summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-04-14 15:52:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-04-14 15:52:02 +0000
commitd7a14c53b95ca2c362704b395d26dd047f503aa8 (patch)
treeefce08cabd85eb535a03e1dc581669ec84e99cf9 /misc
parent2010-04-12 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-examples-d7a14c53b95ca2c362704b395d26dd047f503aa8.tar.bz2
2010-04-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* x86_display_cpu/.cvsignore, x86_display_cpu/Makefile, x86_display_cpu/test.c: New files.
Diffstat (limited to 'misc')
-rw-r--r--misc/ChangeLog5
-rw-r--r--misc/x86_display_cpu/.cvsignore1
-rw-r--r--misc/x86_display_cpu/Makefile27
-rw-r--r--misc/x86_display_cpu/test.c34
4 files changed, 67 insertions, 0 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog
index c156e14..4a9dd0e 100644
--- a/misc/ChangeLog
+++ b/misc/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-14 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * x86_display_cpu/.cvsignore, x86_display_cpu/Makefile,
+ x86_display_cpu/test.c: New files.
+
2010-04-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
* Makefile: Do not build adamain automatically until there is a way to
diff --git a/misc/x86_display_cpu/.cvsignore b/misc/x86_display_cpu/.cvsignore
new file mode 100644
index 0000000..fecf58a
--- /dev/null
+++ b/misc/x86_display_cpu/.cvsignore
@@ -0,0 +1 @@
+o-optimize
diff --git a/misc/x86_display_cpu/Makefile b/misc/x86_display_cpu/Makefile
new file mode 100644
index 0000000..bc014cd
--- /dev/null
+++ b/misc/x86_display_cpu/Makefile
@@ -0,0 +1,27 @@
+#
+# $Id$
+#
+
+#
+# RTEMS_MAKEFILE_PATH is typically set in an environment variable
+#
+
+PGM=${ARCH}/display_cpu.exe
+
+# optional managers required
+MANAGERS=all
+
+# C source names
+CSRCS = test.c
+COBJS = $(CSRCS:%.c=${ARCH}/%.o)
+
+include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
+include $(RTEMS_CUSTOM)
+include $(PROJECT_ROOT)/make/leaf.cfg
+
+OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS)
+
+all: ${ARCH} $(PGM)
+
+$(PGM): $(OBJS)
+ $(make-exe)
diff --git a/misc/x86_display_cpu/test.c b/misc/x86_display_cpu/test.c
new file mode 100644
index 0000000..10e08c4
--- /dev/null
+++ b/misc/x86_display_cpu/test.c
@@ -0,0 +1,34 @@
+/*
+ * Simple test program -- simplified version of sample test hello.
+ *
+ * $Id$
+ */
+
+#include <bsp.h>
+#include <rtems/bspIo.h>
+#include <libcpu/cpuModel.h>
+
+rtems_task Init(
+ rtems_task_argument ignored
+)
+{
+ printk( "\n\n*** x86 DISPLAY CPU CAPABILITIES TEST ***\n" );
+ printCpuInfo();
+ printk( "\n\n*** END OF x86 DISPLAY CPU CAPABILITIES TEST ***\n" );
+ exit( 0 );
+}
+
+/* configuration information */
+
+/* NOTICE: the clock driver is explicitly disabled */
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_MAXIMUM_TASKS 1
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+
+/* end of file */