RTEMS CPU Kit with SuperCore  4.11.3
fatal.h
Go to the documentation of this file.
1 
7 /*
8  * COPYRIGHT (c) 1989-2011.
9  * On-Line Applications Research Corporation (OAR).
10  *
11  * The license and distribution terms for this file may be
12  * found in the file LICENSE in this distribution or at
13  * http://www.rtems.org/license/LICENSE.
14  */
15 
16 #ifndef _RTEMS_FATAL_H
17 #define _RTEMS_FATAL_H
18 
19 #include <rtems/score/basedefs.h> /* RTEMS_COMPILER_NO_RETURN_ATTRIBUTE */
20 #include <rtems/extension.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
39 typedef struct {
40  const char *file;
41  int line;
42  const char *function;
43  const char *failed_expression;
45 
50 
56 static inline void rtems_exception_frame_print(
57  const rtems_exception_frame *frame
58 )
59 {
61 }
62 
72  uint32_t the_error
74 
83 void rtems_fatal(
84  rtems_fatal_source source,
85  rtems_fatal_code error
87 
98 const char *rtems_fatal_source_text( rtems_fatal_source source );
99 
110 const char *rtems_internal_error_text( rtems_fatal_code error );
111 
114 #ifdef __cplusplus
115 }
116 #endif
117 
118 #endif
119 /* end of include file */
void rtems_fatal(rtems_fatal_source source, rtems_fatal_code error)
Invokes the internal error handler with is internal set to false.
Definition: fatal2.c:29
const char * rtems_internal_error_text(rtems_fatal_code error)
Returns a text for an internal error code.
Definition: interrtext.c:58
const char * rtems_fatal_source_text(rtems_fatal_source source)
Returns a text for a fatal source.
Definition: fatalsrctext.c:43
Assert context.
Definition: fatal.h:39
void rtems_fatal_error_occurred(uint32_t the_error)
Invokes the internal error handler with a source of INTERNAL_ERROR_RTEMS_API and is internal set to f...
Definition: fatal.c:29
User Extensions API.
CPU_Exception_frame rtems_exception_frame
Exception frame.
Definition: fatal.h:49
#define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE
The following macro is a compiler specific way to indicate that the method will NOT return to the cal...
Definition: basedefs.h:162
void _CPU_Exception_frame_print(const CPU_Exception_frame *frame)
Prints the exception frame via printk().
Definition: arm-exception-frame-print.c:46
Basic Definitions.
The set of registers that specifies the complete processor state.
Definition: cpu.h:671
Internal_errors_Source
This type lists the possible sources from which an error can be reported.
Definition: interr.h:45
Definition: mongoose.c:439