From 15e19273b2a6ebda3b2d55b28d693e7b8a0740b2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 21 Nov 2017 11:29:01 +0100 Subject: sapi: New implementation of rtems_panic() The previous rtems_panic() implementation was quite heavy weight. It depended on _exit() which calls the global destructors. It used fprintf(stderr, ...) for output which depends on an initialized console device and the complex fprintf(). Introduce a new fatal source RTEMS_FATAL_SOURCE_PANIC for rtems_panic() and output via vprintk(). Update #3244. --- cpukit/libcsupport/include/rtems/error.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'cpukit/libcsupport/include/rtems') diff --git a/cpukit/libcsupport/include/rtems/error.h b/cpukit/libcsupport/include/rtems/error.h index f72d78c700..617f59642b 100644 --- a/cpukit/libcsupport/include/rtems/error.h +++ b/cpukit/libcsupport/include/rtems/error.h @@ -48,7 +48,7 @@ #define _RTEMS_RTEMS_ERROR_H #include -#include +#include #include @@ -124,14 +124,6 @@ int rtems_verror( va_list arglist ); -/** - * rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...) - */ -void rtems_panic( - const char *printf_format, - ... -) RTEMS_NO_RETURN; - extern int rtems_panic_in_progress; #ifdef __cplusplus -- cgit v1.2.3