Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:22

0001 /**
0002  * @file
0003  *
0004  * @ingroup ErrorPanicSupport
0005  *
0006  * @brief This source file contains the implementation of
0007  *   rtems_panic().
0008  */
0009 
0010 /*
0011  * Copyright (c) 2017 embedded brains GmbH & Co. KG
0012  *
0013  * The license and distribution terms for this file may be
0014  * found in the file LICENSE in this distribution or at
0015  * http://www.rtems.com/license/LICENSE.
0016  */
0017 
0018 #ifdef HAVE_CONFIG_H
0019 #include "config.h"
0020 #endif
0021 
0022 #include <rtems/fatal.h>
0023 #include <rtems/bspIo.h>
0024 
0025 #include <stdarg.h>
0026 
0027 void rtems_panic( const char *fmt, ... )
0028 {
0029   va_list ap;
0030 
0031   va_start( ap, fmt );
0032   vprintk( fmt, ap );
0033   va_end( ap);
0034 
0035   _Terminate( RTEMS_FATAL_SOURCE_PANIC, (Internal_errors_t) fmt );
0036 }