source: rtems/cpukit/score/src/interr.c @ 4fc370e

4.115
Last change on this file since 4fc370e was bf54252, checked in by Alexandre Devienne <deviennealexandre@…>, on 11/28/12 at 20:14:50

Score misc: Clean up Doxygen #4 (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/7985215

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @file
3 *
4 * @brief Initiates system termination
5 * @ingroup ScoreIntErr
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-1999.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/score/interr.h>
22#include <rtems/score/sysstate.h>
23#include <rtems/score/userextimpl.h>
24
25System_state_Codes _System_state_Current;
26
27Internal_errors_Information _Internal_errors_What_happened;
28
29void _Internal_error_Occurred(
30  Internal_errors_Source  the_source,
31  bool                    is_internal,
32  Internal_errors_t       the_error
33)
34{
35  _User_extensions_Fatal( the_source, is_internal, the_error );
36
37  _Internal_errors_What_happened.the_source  = the_source;
38  _Internal_errors_What_happened.is_internal = is_internal;
39  _Internal_errors_What_happened.the_error   = the_error;
40
41  _System_state_Set( SYSTEM_STATE_FAILED );
42
43  _CPU_Fatal_halt( the_error );
44
45  /* will not return from this routine */
46  while (true);
47}
Note: See TracBrowser for help on using the repository browser.