score: Add RTEMS_FATAL_SOURCE_ASSERT

This commit is contained in:
Sebastian Huber
2012-11-14 14:54:09 +01:00
parent b1e8a580bc
commit a0c7aa5555
4 changed files with 14 additions and 5 deletions

View File

@@ -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

View File

@@ -83,6 +83,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.
*