change log for rtems (2010-07-07)

rtems-vc at rtems.org rtems-vc at rtems.org
Wed Jul 7 10:19:45 UTC 2010


 *sh*:
2010-07-07	Sebastian Huber <Sebastian.Huber at embedded-brains.de>

	* minimum/init.c: Use fatal error extension to prevent infinite
	runtime.

M  1.180  testsuites/samples/ChangeLog
M   1.20  testsuites/samples/minimum/init.c

diff -u rtems/testsuites/samples/ChangeLog:1.179 rtems/testsuites/samples/ChangeLog:1.180
--- rtems/testsuites/samples/ChangeLog:1.179	Mon Jun 21 17:54:20 2010
+++ rtems/testsuites/samples/ChangeLog	Wed Jul  7 04:25:59 2010
@@ -1,3 +1,8 @@
+2010-07-07	Sebastian Huber <Sebastian.Huber at embedded-brains.de>
+
+	* minimum/init.c: Use fatal error extension to prevent infinite
+	runtime.
+
 2010-06-21	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	* capture/capture.doc: Remove more ITRON references.

diff -u rtems/testsuites/samples/minimum/init.c:1.19 rtems/testsuites/samples/minimum/init.c:1.20
--- rtems/testsuites/samples/minimum/init.c:1.19	Sun Nov 29 21:33:23 2009
+++ rtems/testsuites/samples/minimum/init.c	Wed Jul  7 04:26:05 2010
@@ -10,7 +10,10 @@
  *  $Id$
  */
 
+#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
+
 #include <bsp.h>
+#include <rtems/score/thread.h>
 
 rtems_task Init(
   rtems_task_argument ignored
@@ -26,6 +29,21 @@
 /* configuration information */
 
 /*
+ * This fatal extension adds some bytes to the absolute minimum, but it
+ * prevents the _CPU_Fatal_halt().
+ */
+static void Fatal_extension(
+  uint32_t source,
+  bool is_internal,
+  uint32_t error
+)
+{
+  _Thread_Stop_multitasking();
+}
+
+#define CONFIGURE_INITIAL_EXTENSIONS { .fatal = Fatal_extension }
+
+/*
  * This application has no device drivers.
  */
 /* NOTICE: the clock driver is explicitly disabled */



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100707/3e61834b/attachment-0001.html>


More information about the vc mailing list