source: rtems/cpukit/sapi/src/fatal.c

Last change on this file was bd2e898, checked in by Joel Sherrill <joel@…>, on 02/16/22 at 22:48:55

sapi/src/*.c: Change license to BSD-2

Updates #3053.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[bd2e898]1/* SPDX-License-Identifier: BSD-2-Clause */
2
[4c98a3e]3/**
4 * @file
5 *
[3db9c820]6 * @ingroup RTEMSImplClassic
[4c98a3e]7 *
[3db9c820]8 * @brief This source file contains the implementation of
9 *   rtems_fatal_error_occurred().
[4c98a3e]10 */
11
[ac7d5ef0]12/*
13 *  Fatal Error Manager
14 *
[fd3a990]15 *  COPYRIGHT (c) 1989-2009.
[ac7d5ef0]16 *  On-Line Applications Research Corporation (OAR).
17 *
[bd2e898]18 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions
20 * are met:
21 * 1. Redistributions of source code must retain the above copyright
22 *    notice, this list of conditions and the following disclaimer.
23 * 2. Redistributions in binary form must reproduce the above copyright
24 *    notice, this list of conditions and the following disclaimer in the
25 *    documentation and/or other materials provided with the distribution.
26 *
27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
31 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
[ac7d5ef0]38 */
39
[80cf60e]40#ifdef HAVE_CONFIG_H
[16351f7a]41#include "config.h"
42#endif
43
[ac7d5ef0]44#include <rtems/fatal.h>
[5e9b32b]45#include <rtems/score/interr.h>
[ac7d5ef0]46
[d0bb8f3]47void rtems_fatal_error_occurred(
[8bd41178]48  uint32_t   the_error
[ac7d5ef0]49)
50{
[b6606e8]51  _Terminate( INTERNAL_ERROR_RTEMS_API, the_error );
[ac7d5ef0]52
53/* will not return from this routine */
54}
Note: See TracBrowser for help on using the repository browser.