summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-14 14:54:09 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-15 15:33:13 +0100
commita0c7aa555562ec4248882e808abe91996f248cc2 (patch)
tree781a78158035d4c10f8e3c0a21c7c0774ea5392c /cpukit
parentbsps/powerpc: Exception initialization error is fatal (diff)
downloadrtems-a0c7aa555562ec4248882e808abe91996f248cc2.tar.bz2
score: Add RTEMS_FATAL_SOURCE_ASSERT
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/__assert.c2
-rw-r--r--cpukit/score/include/rtems/score/interr.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/__assert.c b/cpukit/libcsupport/src/__assert.c
index 5adefdf632..07af01bc40 100644
--- a/cpukit/libcsupport/src/__assert.c
+++ b/cpukit/libcsupport/src/__assert.c
@@ -34,7 +34,7 @@ void __assert_func(
(func) ? ", function: " : "",
(func) ? func : ""
);
- rtems_fatal_error_occurred(0);
+ rtems_fatal( RTEMS_FATAL_SOURCE_ASSERT, (rtems_fatal_code) func );
}
#endif
diff --git a/cpukit/score/include/rtems/score/interr.h b/cpukit/score/include/rtems/score/interr.h
index b316fbfd9f..20efcb3e0b 100644
--- a/cpukit/score/include/rtems/score/interr.h
+++ b/cpukit/score/include/rtems/score/interr.h
@@ -84,6 +84,13 @@ typedef enum {
RTEMS_FATAL_SOURCE_BSP_SPECIFIC,
/**
+ * @brief Fatal source of assert().
+ *
+ * The fatal code is the pointer value of the function string.
+ */
+ RTEMS_FATAL_SOURCE_ASSERT,
+
+ /**
* @brief The last available fatal source.
*
* This enum value ensures that the enum type needs at least 32-bits for