* minimum/init.c: Use fatal error extension to prevent infinite
	runtime.
This commit is contained in:
Sebastian Huber
2010-07-07 09:26:05 +00:00
parent 190f165bf2
commit 3ac6eb90c5
2 changed files with 23 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2010-07-07 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* minimum/init.c: Use fatal error extension to prevent infinite
runtime.
2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* capture/capture.doc: Remove more ITRON references.

View File

@@ -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
@@ -25,6 +28,21 @@ rtems_task Init(
/* 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.
*/