summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/rtems/fatal.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-13 17:40:33 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-15 15:33:11 +0100
commitdc6e830c108996c43e9267f05a51b7299dd3e6f9 (patch)
treefb18e0a10ef689e15aaa6054a25ab6bc3ee3eb00 /cpukit/sapi/include/rtems/fatal.h
parentsapi: Add rtems_fatal_source and rtems_fatal_code (diff)
downloadrtems-dc6e830c108996c43e9267f05a51b7299dd3e6f9.tar.bz2
sapi: Add and use rtems_internal_error_description
Diffstat (limited to 'cpukit/sapi/include/rtems/fatal.h')
-rw-r--r--cpukit/sapi/include/rtems/fatal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpukit/sapi/include/rtems/fatal.h b/cpukit/sapi/include/rtems/fatal.h
index 4ddb578c91..8f646a9417 100644
--- a/cpukit/sapi/include/rtems/fatal.h
+++ b/cpukit/sapi/include/rtems/fatal.h
@@ -23,6 +23,7 @@
#define _RTEMS_FATAL_H
#include <rtems/score/basedefs.h> /* RTEMS_COMPILER_NO_RETURN_ATTRIBUTE */
+#include <rtems/extension.h>
#ifdef __cplusplus
extern "C" {
@@ -42,6 +43,16 @@ void rtems_fatal_error_occurred(
uint32_t the_error
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+/**
+ * @brief Returns a description for an internal error code.
+ *
+ * @param[in] error The error code.
+ *
+ * @return The error code description or "?" in case the passed error code is
+ * invalid.
+ */
+const char *rtems_internal_error_description( rtems_fatal_code error );
+
#ifdef __cplusplus
}
#endif