summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/interr.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-12 12:15:59 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-12 12:15:59 +0000
commit25e02d50ce5579595ce87c985820d8b3c3ea972b (patch)
tree68858842ec9b7b8866d470e16559d33e539ced18 /cpukit/score/include/rtems/score/interr.h
parentincrease size of ROM to 4 Meg (diff)
downloadrtems-25e02d50ce5579595ce87c985820d8b3c3ea972b.tar.bz2
Introduce Internal_errors_t.
Diffstat (limited to 'cpukit/score/include/rtems/score/interr.h')
-rw-r--r--cpukit/score/include/rtems/score/interr.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/interr.h b/cpukit/score/include/rtems/score/interr.h
index e432911716..226047934d 100644
--- a/cpukit/score/include/rtems/score/interr.h
+++ b/cpukit/score/include/rtems/score/interr.h
@@ -19,6 +19,11 @@
#ifndef _RTEMS_SCORE_INTERR_H
#define _RTEMS_SCORE_INTERR_H
+#include <stdbool.h>
+#include <stdint.h>
+
+#include <rtems/system.h>
+
/**
* @defgroup ScoreIntErr Internal Error Handler
*
@@ -68,6 +73,8 @@ typedef enum {
INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE
} Internal_errors_Core_list;
+typedef uint32_t Internal_errors_t;
+
/**
* This type holds the fatal error information.
*/
@@ -77,7 +84,7 @@ typedef struct {
/** This indicates if the error is internal of external. */
bool is_internal;
/** This is the error code. */
- uint32_t the_error;
+ Internal_errors_t the_error;
} Internal_errors_Information;
/**
@@ -93,7 +100,7 @@ SCORE_EXTERN Internal_errors_Information _Internal_errors_What_happened;
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
- uint32_t the_error
+ Internal_errors_t the_error
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
#ifdef __cplusplus