<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-06-21)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ccj</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-22      Chris Johns <chrisj@rtems.org>

        * startup/m68k-stub.c: PR 1539. Fix buffer overrun.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/m68k/ods68302/ChangeLog.diff?r1=text&tr1=1.126&r2=text&tr2=1.127&diff_format=h">M</a></td><td width='1%'>1.127</td><td width='100%'>c/src/lib/libbsp/m68k/ods68302/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/m68k/ods68302/ChangeLog:1.126 rtems/c/src/lib/libbsp/m68k/ods68302/ChangeLog:1.127
--- rtems/c/src/lib/libbsp/m68k/ods68302/ChangeLog:1.126        Fri Apr 30 11:44:16 2010
+++ rtems/c/src/lib/libbsp/m68k/ods68302/ChangeLog      Mon Jun 21 21:03:36 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-06-22    Chris Johns <chrisj@rtems.org>
+
+       * startup/m68k-stub.c: PR 1539. Fix buffer overrun.
+<span style="background-color: #FF0000">       </span>
</font> 2010-04-30        Joel Sherrill <joel.sherrilL@OARcorp.com>
 
        * include/bsp.h: Add BSP_SMALL_MEMORY.

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c:1.11 rtems/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c:1.12
--- rtems/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c:1.11       Wed Apr 28 14:43:37 2010
+++ rtems/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c    Mon Jun 21 21:03:36 2010
</font><font color='#997700'>@@ -601,7 +601,7 @@
</font>     count = 0;
 
     /* now, read until a # or end of buffer is found */
<font color='#880000'>-    while (count < BUFMAX) {
</font><font color='#000088'>+    while (count < (BUFMAX - 1)) {
</font>       ch = getDebugChar() & 0x7f;
       if (ch == '#') break;
       checksum = checksum + ch;
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>

        * Makefile.am, configure.ac, spfatal_support/init.c,
        spfatal_support/system.h: Add new tests to generate fatal errors in
        open_dev_console().
        * spfatal14/.cvsignore, spfatal14/Makefile.am, spfatal14/spfatal14.doc,
        spfatal14/spfatal14.scn, spfatal14/testcase.h, spfatal15/.cvsignore,
        spfatal15/Makefile.am, spfatal15/spfatal15.doc,
        spfatal15/spfatal15.scn, spfatal15/testcase.h,
        spfatal_support/consume_sems.c: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.379&r2=text&tr2=1.380&diff_format=h">M</a></td><td width='1%'>1.380</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/Makefile.am.diff?r1=text&tr1=1.87&r2=text&tr2=1.88&diff_format=h">M</a></td><td width='1%'>1.88</td><td width='100%'>testsuites/sptests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/configure.ac.diff?r1=text&tr1=1.92&r2=text&tr2=1.93&diff_format=h">M</a></td><td width='1%'>1.93</td><td width='100%'>testsuites/sptests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal14/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal14/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal14/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal14/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal14/spfatal14.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal14/spfatal14.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal14/spfatal14.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal14/spfatal14.scn</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal14/testcase.h?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal14/testcase.h</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal15/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal15/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal15/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal15/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal15/spfatal15.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal15/spfatal15.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal15/spfatal15.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal15/spfatal15.scn</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal15/testcase.h?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal15/testcase.h</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal_support/consume_sems.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal_support/consume_sems.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal_support/init.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>testsuites/sptests/spfatal_support/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal_support/system.h.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>testsuites/sptests/spfatal_support/system.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.379 rtems/testsuites/sptests/ChangeLog:1.380
--- rtems/testsuites/sptests/ChangeLog:1.379    Mon Jun 21 17:54:24 2010
+++ rtems/testsuites/sptests/ChangeLog  Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -1,5 +1,16 @@
</font> 2010-06-21        Joel Sherrill <joel.sherrill@oarcorp.com>
 
<font color='#000088'>+   * Makefile.am, configure.ac, spfatal_support/init.c,
+       spfatal_support/system.h: Add new tests to generate fatal errors in
+       open_dev_console().
+       * spfatal14/.cvsignore, spfatal14/Makefile.am, spfatal14/spfatal14.doc,
+       spfatal14/spfatal14.scn, spfatal14/testcase.h, spfatal15/.cvsignore,
+       spfatal15/Makefile.am, spfatal15/spfatal15.doc,
+       spfatal15/spfatal15.scn, spfatal15/testcase.h,
+       spfatal_support/consume_sems.c: New files.
+
+2010-06-21     Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font>   * sp43/init.c: Remove more ITRON references.
 
 2010-06-21     Joel Sherrill <joel.sherrill@oarcorp.com>

<font color='#006600'>diff -u rtems/testsuites/sptests/Makefile.am:1.87 rtems/testsuites/sptests/Makefile.am:1.88
--- rtems/testsuites/sptests/Makefile.am:1.87   Sun Jun 20 14:48:02 2010
+++ rtems/testsuites/sptests/Makefile.am        Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -18,7 +18,8 @@
</font>     spchain spclockget spcoverage spobjgetnext spnotepad01 spprintk spsize \
     spstkalloc spthreadq01 spwatchdog spwkspace \
     spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 spfatal07 \
<font color='#880000'>-    spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 spfatal13 \
</font><font color='#000088'>+    spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 spfatal13 spfatal14 \
+    spfatal15 \
</font>     spfifo01 spfifo02 spfifo03 spfifo04 spfifo08 \
     spintrcritical01 spintrcritical02 spintrcritical03 spintrcritical04 \
     spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \

<font color='#006600'>diff -u rtems/testsuites/sptests/configure.ac:1.92 rtems/testsuites/sptests/configure.ac:1.93
--- rtems/testsuites/sptests/configure.ac:1.92  Sun Jun 20 14:48:03 2010
+++ rtems/testsuites/sptests/configure.ac       Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -112,6 +112,8 @@
</font> spfatal11/Makefile
 spfatal12/Makefile
 spfatal13/Makefile
<font color='#000088'>+spfatal14/Makefile
+spfatal15/Makefile
</font> spfifo01/Makefile
 spfifo02/Makefile
 spfifo03/Makefile

<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal14/.cvsignore:1.1
--- /dev/null   Mon Jun 21 21:11:53 2010
+++ rtems/testsuites/sptests/spfatal14/.cvsignore       Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal14/Makefile.am:1.1
--- /dev/null   Mon Jun 21 21:11:53 2010
+++ rtems/testsuites/sptests/spfatal14/Makefile.am      Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1,29 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = spfatal14
+spfatal14_SOURCES = ../spfatal_support/init.c \
+    ../spfatal_support/consume_sems.c \
+    ../spfatal_support/system.h testcase.h
+
+dist_rtems_tests_DATA = spfatal14.scn
+dist_rtems_tests_DATA += spfatal14.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+AM_CPPFLAGS += -DSEMAPHORES_REMAINING=6
+
+LINK_OBJS = $(spfatal14_OBJECTS) $(spfatal14_LDADD)
+LINK_LIBS = $(spfatal14_LDLIBS)
+
+spfatal14$(EXEEXT): $(spfatal14_OBJECTS) $(spfatal14_DEPENDENCIES)
+       @rm -f spfatal14$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal14/spfatal14.doc:1.1
--- /dev/null   Mon Jun 21 21:11:53 2010
+++ rtems/testsuites/sptests/spfatal14/spfatal14.doc    Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1,24 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  COPYRIGHT (c) 1989-2010.
+#  On-Line Applications Research Corporation (OAR).
+#
+#  The license and distribution terms for this file may be
+#  found in the file LICENSE in this distribution or at
+#  http://www.rtems.com/license/LICENSE.
+#
+
+This file describes the directives and concepts tested by this test set.
+
+test set name:  spfatal14
+
+directives:
+
+  + open("dev/console")
+
+concepts:
+
++ fail to open stderr in open_dev_console.c
+
+
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal14/spfatal14.scn:1.1
--- /dev/null   Mon Jun 21 21:11:54 2010
+++ rtems/testsuites/sptests/spfatal14/spfatal14.scn    Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1 @@
</font><font color='#000088'>+Fatal error (fail to open stderr) hit
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal14/testcase.h:1.1
--- /dev/null   Mon Jun 21 21:11:54 2010
+++ rtems/testsuites/sptests/spfatal14/testcase.h       Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1,26 @@
</font><font color='#000088'>+/*
+ *  COPYRIGHT (c) 1989-2010.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id$
+ */
+
+/* generate fatal errors in open_dev_console.c */
+
+#define FATAL_ERROR_TEST_NAME            "14"
+#define FATAL_ERROR_DESCRIPTION          "fail to open stdout"
+#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
+#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
+#define FATAL_ERROR_EXPECTED_ERROR       0x55544431
+
+#define CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS \
+  CONSUME_SEMAPHORE_DRIVERS
+
+void force_error()
+{
+  /* we will not run this far */
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal15/.cvsignore:1.1
--- /dev/null   Mon Jun 21 21:11:54 2010
+++ rtems/testsuites/sptests/spfatal15/.cvsignore       Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal15/Makefile.am:1.1
--- /dev/null   Mon Jun 21 21:11:54 2010
+++ rtems/testsuites/sptests/spfatal15/Makefile.am      Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1,29 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = spfatal15
+spfatal15_SOURCES = ../spfatal_support/init.c \
+    ../spfatal_support/consume_sems.c \
+    ../spfatal_support/system.h testcase.h
+
+dist_rtems_tests_DATA = spfatal15.scn
+dist_rtems_tests_DATA += spfatal15.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+AM_CPPFLAGS += -DSEMAPHORES_REMAINING=7
+
+LINK_OBJS = $(spfatal15_OBJECTS) $(spfatal15_LDADD)
+LINK_LIBS = $(spfatal15_LDLIBS)
+
+spfatal15$(EXEEXT): $(spfatal15_OBJECTS) $(spfatal15_DEPENDENCIES)
+       @rm -f spfatal15$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal15/spfatal15.doc:1.1
--- /dev/null   Mon Jun 21 21:11:54 2010
+++ rtems/testsuites/sptests/spfatal15/spfatal15.doc    Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  COPYRIGHT (c) 1989-2010.
+#  On-Line Applications Research Corporation (OAR).
+#
+#  The license and distribution terms for this file may be
+#  found in the file LICENSE in this distribution or at
+#  http://www.rtems.com/license/LICENSE.
+#
+
+This file describes the directives and concepts tested by this test set.
+
+test set name:  spfatal15
+
+directives:
+
+  + open("dev/console")
+
+concepts:
+
++ fail to open stderr in open_dev_console.c
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal15/spfatal15.scn:1.1
--- /dev/null   Mon Jun 21 21:11:54 2010
+++ rtems/testsuites/sptests/spfatal15/spfatal15.scn    Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1,5 @@
</font><font color='#000088'>+*** TEST FATAL 15 ***
+Fatal error (fail to open stderr) NOT hit
+[joel@localhost spfatal15]$ make clean all >/dev/null && sis -i *.exe
+sparc-rtems4.11-run is /opt/rtems-4.11/bin/sparc-rtems4.11-run
+Fatal error (fail to open stderr) hit
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal15/testcase.h:1.1
--- /dev/null   Mon Jun 21 21:11:54 2010
+++ rtems/testsuites/sptests/spfatal15/testcase.h       Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1,25 @@
</font><font color='#000088'>+/*
+ *  COPYRIGHT (c) 1989-2010.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id$
+ */
+
+/* generate fatal errors in open_dev_console.c */
+#define FATAL_ERROR_TEST_NAME            "15"
+#define FATAL_ERROR_DESCRIPTION          "fail to open stderr"
+#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
+#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
+#define FATAL_ERROR_EXPECTED_ERROR       0x55544432
+
+#define CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS \
+  { consume_semaphores_initialize, NULL, NULL, NULL, NULL, NULL }
+
+void force_error()
+{
+  /* we will not run this far */
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal_support/consume_sems.c:1.1
--- /dev/null   Mon Jun 21 21:11:54 2010
+++ rtems/testsuites/sptests/spfatal_support/consume_sems.c     Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -0,0 +1,54 @@
</font><font color='#000088'>+/*
+ *  COPYRIGHT (c) 1989-2010.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id$
+ */
+
+#include <rtems.h>
+
+#define MAXIMUM 20
+rtems_id Semaphores[MAXIMUM];
+
+rtems_device_driver consume_semaphores_initialize(
+  rtems_device_major_number major __attribute__((unused)),
+  rtems_device_minor_number minor __attribute__((unused)),
+  void *pargp __attribute__((unused))
+)
+{
+  int               sems;
+  rtems_status_code status;
+
+  for ( sems=0 ; sems<MAXIMUM ; sems++ ) {
+    status = rtems_semaphore_create(
+      rtems_build_name( 'S', 'M', '1', ' ' ),
+      1,
+      RTEMS_DEFAULT_MODES,
+      RTEMS_NO_PRIORITY,
+      &Semaphores[sems]
+    );
+    if ( status == RTEMS_TOO_MANY )
+     break;
+  }
+
+  #if 0
+    printk( "Consumed %d\n", sems );
+    printk( "Freeing %d\n", SEMAPHORES_REMAINING );
+  #endif
+
+  #if defined(SEMAPHORES_REMAINING)
+  {
+    int i;
+
+    for ( i=0 ; i<SEMAPHORES_REMAINING ; i++ ) {
+      (void) rtems_semaphore_delete( Semaphores[i] );
+    }
+  }
+  #endif
+  return RTEMS_SUCCESSFUL;
+}
+
</font>
<font color='#006600'>diff -u rtems/testsuites/sptests/spfatal_support/init.c:1.7 rtems/testsuites/sptests/spfatal_support/init.c:1.8
--- rtems/testsuites/sptests/spfatal_support/init.c:1.7 Sat Jun 19 15:55:03 2010
+++ rtems/testsuites/sptests/spfatal_support/init.c     Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -102,7 +102,7 @@
</font>   }
   else if (source == INTERNAL_ERROR_RTEMS_API ){
     if (error >  RTEMS_NOT_IMPLEMENTED )
<font color='#880000'>-      printk("Unknown Internal Rtems Error (%d)", error);
</font><font color='#000088'>+      printk("Unknown Internal Rtems Error (0x%08x)", error);
</font>     else
       printk( Errors_Rtems[ error ] );
   }

<font color='#006600'>diff -u rtems/testsuites/sptests/spfatal_support/system.h:1.4 rtems/testsuites/sptests/spfatal_support/system.h:1.5
--- rtems/testsuites/sptests/spfatal_support/system.h:1.4       Sat Sep 26 10:47:16 2009
+++ rtems/testsuites/sptests/spfatal_support/system.h   Mon Jun 21 20:28:13 2010
</font><font color='#997700'>@@ -45,6 +45,15 @@
</font> 
 /* need some prototypes for test cases */
 
<font color='#000088'>+rtems_device_driver consume_semaphores_initialize(
+  rtems_device_major_number major __attribute__((unused)),
+  rtems_device_minor_number minor __attribute__((unused)),
+  void *pargp __attribute__((unused))
+);
+
+#define CONSUME_SEMAPHORE_DRIVERS \
+  { consume_semaphores_initialize, NULL, NULL, NULL, NULL, NULL }
+
</font> #include "testcase.h"
 
 /* configuration information */
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>