47 #ifndef _RTEMS_RTEMS_ERROR_H 48 #define _RTEMS_RTEMS_ERROR_H 67 typedef Internal_errors_t rtems_error_code_t;
75 #define RTEMS_ERROR_ERRNO (1<<((sizeof(rtems_error_code_t) * CHAR_BIT) - 2)) 76 #define RTEMS_ERROR_PANIC (RTEMS_ERROR_ERRNO / 2) 77 #define RTEMS_ERROR_ABORT (RTEMS_ERROR_ERRNO / 4) 79 #define RTEMS_ERROR_ERRNO (0x40000000) 80 #define RTEMS_ERROR_PANIC (0x20000000) 81 #define RTEMS_ERROR_ABORT (0x10000000) 84 #define RTEMS_ERROR_MASK \ 85 (RTEMS_ERROR_ERRNO | RTEMS_ERROR_ABORT | RTEMS_ERROR_PANIC) 101 rtems_error_code_t error_code,
102 const char *printf_format,
122 rtems_error_code_t error_code,
123 const char *printf_format,
131 const char *printf_format,
135 extern
int rtems_panic_in_progress;
Constants and Prototypes Related to the Internal Error Handler.
void rtems_panic(const char *printf_format,...)
rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...)
Definition: error.c:102
int rtems_verror(rtems_error_code_t error_code, const char *printf_format, va_list arglist)
Report an Error.
Definition: error.c:27
int rtems_error(rtems_error_code_t error_code, const char *printf_format,...)
Report an Error.
Definition: error.c:77
#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