source: rtems/cpukit/score/include/rtems/score/interr.h @ 226d66d5

4.115
Last change on this file since 226d66d5 was 226d66d5, checked in by Ralf Corsepius <ralf.corsepius@…>, on 06/18/10 at 04:08:47

2010-06-18 Ralf Corsépius <ralf.corsepius@…>

  • score/include/rtems/score/interr.h: Remove ITRON.
  • Property mode set to 100644
File size: 2.8 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-2007.
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 *  This handler encapsulates functionality which provides the foundation
31 *  Semaphore services used in all of the APIs supported by RTEMS.
32 */
33/**@{*/
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39/**
40 *  This type lists the possible sources from which an error
41 *  can be reported.
42 */
43typedef enum {
44  INTERNAL_ERROR_CORE,
45  INTERNAL_ERROR_RTEMS_API,
46  INTERNAL_ERROR_POSIX_API
47} Internal_errors_Source;
48
49/**
50 *  A list of errors which are generated internally by the executive core.
51 */
52typedef enum {
53  INTERNAL_ERROR_NO_CONFIGURATION_TABLE,
54  INTERNAL_ERROR_NO_CPU_TABLE,
55  INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS,
56  INTERNAL_ERROR_TOO_LITTLE_WORKSPACE,
57  INTERNAL_ERROR_WORKSPACE_ALLOCATION,
58  INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL,
59  INTERNAL_ERROR_THREAD_EXITTED,
60  INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION,
61  INTERNAL_ERROR_INVALID_NODE,
62  INTERNAL_ERROR_NO_MPCI,
63  INTERNAL_ERROR_BAD_PACKET,
64  INTERNAL_ERROR_OUT_OF_PACKETS,
65  INTERNAL_ERROR_OUT_OF_GLOBAL_OBJECTS,
66  INTERNAL_ERROR_OUT_OF_PROXIES,
67  INTERNAL_ERROR_INVALID_GLOBAL_ID,
68  INTERNAL_ERROR_BAD_STACK_HOOK,
69  INTERNAL_ERROR_BAD_ATTRIBUTES,
70  INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY,
71  INTERNAL_ERROR_IMPLEMENTATION_BLOCKING_OPERATION_CANCEL,
72  INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE,
73  INTERNAL_ERROR_UNLIMITED_AND_MAXIMUM_IS_0
74} Internal_errors_Core_list;
75
76typedef uint32_t Internal_errors_t;
77
78/**
79 *  This type holds the fatal error information.
80 */
81typedef struct {
82  /** This is the source of the error. */
83  Internal_errors_Source  the_source;
84  /** This indicates if the error is internal of external. */
85  bool                    is_internal;
86  /** This is the error code. */
87  Internal_errors_t       the_error;
88} Internal_errors_Information;
89
90/**
91 *  When a fatal error occurs, the error information is stored here.
92 */
93SCORE_EXTERN Internal_errors_Information _Internal_errors_What_happened;
94
95/** @brief  Internal error Occurred
96 *
97 *  This routine is invoked when the application or the executive itself
98 *  determines that a fatal error has occurred.
99 */
100void _Internal_error_Occurred(
101  Internal_errors_Source  the_source,
102  bool                    is_internal,
103  Internal_errors_t       the_error
104) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
105
106#ifdef __cplusplus
107}
108#endif
109
110/**@}*/
111
112#endif
113/* end of include file */
Note: See TracBrowser for help on using the repository browser.