source: rtems/cpukit/score/src/interr.c

5
Last change on this file was cfe8f7a, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 27, 2020 at 2:14:06 PM

doxygen: Switch @brief and @ingroup

This order change fixes the Latex documentation build via Doxygen.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup RTEMSScoreIntErr
5 *
6 * @brief Initiates system termination
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-1999.
11 *  On-Line Applications Research Corporation (OAR).
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.org/license/LICENSE.
16 */
17
18#ifdef HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/score/interr.h>
23#include <rtems/score/smpimpl.h>
24#include <rtems/score/sysstate.h>
25#include <rtems/score/userextimpl.h>
26
27System_state_Codes _System_state_Current;
28
29Internal_errors_Information _Internal_errors_What_happened;
30
31void _Terminate(
32  Internal_errors_Source the_source,
33  Internal_errors_t      the_error
34)
35{
36  _User_extensions_Fatal( the_source, the_error );
37
38  _Internal_errors_What_happened.the_source = the_source;
39  _Internal_errors_What_happened.the_error  = the_error;
40
41  _System_state_Set( SYSTEM_STATE_TERMINATED );
42
43  _SMP_Request_shutdown();
44
45  _CPU_Fatal_halt( the_source, the_error );
46
47  /* will not return from this routine */
48  while (true);
49}
50
51void _Internal_error( Internal_errors_Core_list core_error )
52{
53  _Terminate( INTERNAL_ERROR_CORE, core_error );
54}
Note: See TracBrowser for help on using the repository browser.