[PATCH 07/16] score: Add RTEMS_FATAL_SOURCE_LAST

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Nov 14 15:47:01 UTC 2012


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;
 
 /**
-- 
1.7.7




More information about the devel mailing list