source: rtems/cpukit/sapi/src/panic.c @ 255fe43

Last change on this file since 255fe43 was 255fe43, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 20:40:44

cpukit/: Scripted embedded brains header file clean up

Updates #4625.

  • Property mode set to 100644
File size: 674 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup ErrorPanicSupport
5 *
6 * @brief This source file contains the implementation of
7 *   rtems_panic().
8 */
9
10/*
11 * Copyright (c) 2017 embedded brains GmbH.  All rights reserved.
12 *
13 * The license and distribution terms for this file may be
14 * found in the file LICENSE in this distribution or at
15 * http://www.rtems.com/license/LICENSE.
16 */
17
18#ifdef HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/fatal.h>
23#include <rtems/bspIo.h>
24
25#include <stdarg.h>
26
27void rtems_panic( const char *fmt, ... )
28{
29  va_list ap;
30
31  va_start( ap, fmt );
32  vprintk( fmt, ap );
33  va_end( ap);
34
35  _Terminate( RTEMS_FATAL_SOURCE_PANIC, (Internal_errors_t) fmt );
36}
Note: See TracBrowser for help on using the repository browser.