[rtems commit] score: Add RTEMS_FATAL_SOURCE_LAST
Sebastian Huber
sebh at rtems.org
Thu Nov 15 14:29:49 UTC 2012
Module: rtems
Branch: master
Commit: 156e91e0f2ca3b7a21a21ec56446eee902a86ca5
Changeset: http://git.rtems.org/rtems/commit/?id=156e91e0f2ca3b7a21a21ec56446eee902a86ca5
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Nov 14 10:11:22 2012 +0100
score: Add RTEMS_FATAL_SOURCE_LAST
This enum value ensures that the enum type needs at least 32-bits for
architectures with short enums.
---
cpukit/score/include/rtems/score/interr.h | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/cpukit/score/include/rtems/score/interr.h b/cpukit/score/include/rtems/score/interr.h
index 6d823a3..2230e0a 100644
--- a/cpukit/score/include/rtems/score/interr.h
+++ b/cpukit/score/include/rtems/score/interr.h
@@ -37,13 +37,21 @@ extern "C" {
#endif
/**
- * This type lists the possible sources from which an error
+ * @brief This type lists the possible sources from which an error
* can be reported.
*/
typedef enum {
INTERNAL_ERROR_CORE,
INTERNAL_ERROR_RTEMS_API,
- INTERNAL_ERROR_POSIX_API
+ INTERNAL_ERROR_POSIX_API,
+
+ /**
+ * @brief The last available fatal source.
+ *
+ * This enum value ensures that the enum type needs at least 32-bits for
+ * architectures with short enums.
+ */
+ RTEMS_FATAL_SOURCE_LAST = 0xffffffff
} Internal_errors_Source;
/**
More information about the vc
mailing list