Changeset a052181 in rtems for testsuites/samples


Ignore:
Timestamp:
Nov 14, 2012, 8:59:10 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9d10cf90
Parents:
038e2f4a
git-author:
Sebastian Huber <sebastian.huber@…> (11/14/12 08:59:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/15/12 14:33:12)
Message:

score: Add RTEMS_FATAL_SOURCE_EXIT

Include <bsp/default-initial-extension.h> in all BSPs. Call
rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit()
status code as fatal code in every bsp_cleanup(). Move previous
bsp_cleanup() code into bsp_fatal_extension().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/minimum/init.c

    r038e2f4a ra052181  
    1313 *  http://www.rtems.com/license/LICENSE.
    1414 */
    15 
    16 #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
    1715
    1816#ifdef HAVE_CONFIG_H
     
    3836
    3937/* configuration information */
    40 
    41 /*
    42  * This fatal extension adds some bytes to the absolute minimum, but it
    43  * prevents the _CPU_Fatal_halt().
    44  */
    45 static void Fatal_extension(
    46   uint32_t source,
    47   bool is_internal,
    48   uint32_t error
    49 )
    50 {
    51   _Thread_Stop_multitasking();
    52 }
    53 
    54 #define CONFIGURE_INITIAL_EXTENSIONS { .fatal = Fatal_extension }
    5538
    5639/*
Note: See TracChangeset for help on using the changeset viewer.