From 156e91e0f2ca3b7a21a21ec56446eee902a86ca5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 14 Nov 2012 10:11:22 +0100 Subject: 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 file changed, 10 insertions(+), 2 deletions(-) (limited to 'cpukit/score/include/rtems/score/interr.h') diff --git a/cpukit/score/include/rtems/score/interr.h b/cpukit/score/include/rtems/score/interr.h index 6d823a3244..2230e0a6de 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; /** -- cgit v1.2.3