Changeset 3ac6eb90 in rtems


Ignore:
Timestamp:
Jul 7, 2010, 9:26:05 AM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
6c8e2fe5
Parents:
190f165b
Message:

2010-07-07 Sebastian Huber <Sebastian.Huber@…>

  • minimum/init.c: Use fatal error extension to prevent infinite runtime.
Location:
testsuites/samples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/ChangeLog

    r190f165b r3ac6eb90  
     12010-07-07      Sebastian Huber <Sebastian.Huber@embedded-brains.de>
     2
     3        * minimum/init.c: Use fatal error extension to prevent infinite
     4        runtime.
     5
    162010-06-21      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/samples/minimum/init.c

    r190f165b r3ac6eb90  
    1111 */
    1212
     13#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
     14
    1315#include <bsp.h>
     16#include <rtems/score/thread.h>
    1417
    1518rtems_task Init(
     
    2528
    2629/* configuration information */
     30
     31/*
     32 * This fatal extension adds some bytes to the absolute minimum, but it
     33 * prevents the _CPU_Fatal_halt().
     34 */
     35static void Fatal_extension(
     36  uint32_t source,
     37  bool is_internal,
     38  uint32_t error
     39)
     40{
     41  _Thread_Stop_multitasking();
     42}
     43
     44#define CONFIGURE_INITIAL_EXTENSIONS { .fatal = Fatal_extension }
    2745
    2846/*
Note: See TracChangeset for help on using the changeset viewer.