source: rtems/cpukit/score/include/rtems/score/interr.h @ d8cd045c

4.115
Last change on this file since d8cd045c was d8cd045c, checked in by Joel Sherrill <joel.sherrill@…>, on 06/17/11 at 15:40:09

2011-06-17 Joel Sherrill <joel.sherrill@…>

  • rtems/include/rtems/rtems/types.h, score/include/rtems/score/address.h, score/include/rtems/score/apiext.h, score/include/rtems/score/bitfield.h, score/include/rtems/score/context.h, score/include/rtems/score/corebarrier.h, score/include/rtems/score/coremsg.h, score/include/rtems/score/coremutex.h, score/include/rtems/score/corerwlock.h, score/include/rtems/score/coresem.h, score/include/rtems/score/corespinlock.h, score/include/rtems/score/interr.h, score/include/rtems/score/isr.h, score/include/rtems/score/mpci.h, score/include/rtems/score/mppkt.h, score/include/rtems/score/objectmp.h, score/include/rtems/score/percpu.h, score/include/rtems/score/priority.h, score/include/rtems/score/rbtree.h, score/include/rtems/score/scheduler.h, score/include/rtems/score/smp.h, score/include/rtems/score/smplock.h, score/include/rtems/score/stack.h, score/include/rtems/score/states.h, score/include/rtems/score/thread.h, score/include/rtems/score/threadq.h, score/include/rtems/score/threadsync.h, score/include/rtems/score/timespec.h, score/include/rtems/score/timestamp.h, score/include/rtems/score/timestamp64.h, score/include/rtems/score/tod.h, score/include/rtems/score/tqdata.h, score/include/rtems/score/watchdog.h, score/include/rtems/score/wkspace.h: Mark Score files as in Score Group to improve Doxygen output.
  • Property mode set to 100644
File size: 2.9 KB
Line 
1/**
2 *  @file  rtems/score/interr.h
3 *
4 *  This include file contains constants and prototypes related
5 *  to the Internal Error Handler.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2009.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef _RTEMS_SCORE_INTERR_H
20#define _RTEMS_SCORE_INTERR_H
21
22#include <stdbool.h>
23#include <stdint.h>
24
25#include <rtems/system.h>
26
27/**
28 *  @defgroup ScoreIntErr Internal Error Handler
29 *
30 *  @ingroup Score
31 *
32 *  This handler encapsulates functionality which provides the foundation
33 *  Semaphore services used in all of the APIs supported by RTEMS.
34 */
35/**@{*/
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41/**
42 *  This type lists the possible sources from which an error
43 *  can be reported.
44 */
45typedef enum {
46  INTERNAL_ERROR_CORE,
47  INTERNAL_ERROR_RTEMS_API,
48  INTERNAL_ERROR_POSIX_API
49} Internal_errors_Source;
50
51/**
52 *  A list of errors which are generated internally by the executive core.
53 */
54typedef enum {
55  INTERNAL_ERROR_NO_CONFIGURATION_TABLE,
56  INTERNAL_ERROR_NO_CPU_TABLE,
57  INTERNAL_ERROR_TOO_LITTLE_WORKSPACE,
58  INTERNAL_ERROR_WORKSPACE_ALLOCATION,
59  INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL,
60  INTERNAL_ERROR_THREAD_EXITTED,
61  INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION,
62  INTERNAL_ERROR_INVALID_NODE,
63  INTERNAL_ERROR_NO_MPCI,
64  INTERNAL_ERROR_BAD_PACKET,
65  INTERNAL_ERROR_OUT_OF_PACKETS,
66  INTERNAL_ERROR_OUT_OF_GLOBAL_OBJECTS,
67  INTERNAL_ERROR_OUT_OF_PROXIES,
68  INTERNAL_ERROR_INVALID_GLOBAL_ID,
69  INTERNAL_ERROR_BAD_STACK_HOOK,
70  INTERNAL_ERROR_BAD_ATTRIBUTES,
71  INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY,
72  INTERNAL_ERROR_IMPLEMENTATION_BLOCKING_OPERATION_CANCEL,
73  INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE,
74  INTERNAL_ERROR_UNLIMITED_AND_MAXIMUM_IS_0,
75  INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP,
76  INTERNAL_ERROR_GXX_KEY_ADD_FAILED,
77  INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED
78} Internal_errors_Core_list;
79
80typedef uint32_t Internal_errors_t;
81
82/**
83 *  This type holds the fatal error information.
84 */
85typedef struct {
86  /** This is the source of the error. */
87  Internal_errors_Source  the_source;
88  /** This indicates if the error is internal of external. */
89  bool                    is_internal;
90  /** This is the error code. */
91  Internal_errors_t       the_error;
92} Internal_errors_Information;
93
94/**
95 *  When a fatal error occurs, the error information is stored here.
96 */
97SCORE_EXTERN Internal_errors_Information _Internal_errors_What_happened;
98
99/**
100 * @brief  Internal error Occurred
101 *
102 *  This routine is invoked when the application or the executive itself
103 *  determines that a fatal error has occurred.
104 */
105void _Internal_error_Occurred(
106  Internal_errors_Source  the_source,
107  bool                    is_internal,
108  Internal_errors_t       the_error
109) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
110
111#ifdef __cplusplus
112}
113#endif
114
115/**@}*/
116
117#endif
118/* end of include file */
Note: See TracBrowser for help on using the repository browser.