source: rtems/c/src/exec/score/include/rtems/score/sysstate.h @ c627b2a3

4.104.114.84.95
Last change on this file since c627b2a3 was c627b2a3, checked in by Joel Sherrill <joel.sherrill@…>, on 05/28/96 at 21:40:52

split the inclusion of "EXTERN" data based on whether it was sapi,
score, rtems api, or posix api related.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*  sysstates.h
2 *
3 *  This include file contains information regarding the system state.
4 *
5 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
6 *  On-Line Applications Research Corporation (OAR).
7 *  All rights assigned to U.S. Government, 1994.
8 *
9 *  This material may be reproduced by or for the U.S. Government pursuant
10 *  to the copyright license under the clause at DFARS 252.227-7013.  This
11 *  notice must appear in all copies of this file and its derivatives.
12 *
13 *  $Id$
14 */
15
16#ifndef __RTEMS_SYSTEM_STATE_h
17#define __RTEMS_SYSTEM_STATE_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/* types */
24
25/* enumerated constants */
26
27/*
28 *  The following type defines the possible system states.
29 */
30
31typedef enum {
32  SYSTEM_STATE_BEFORE_INITIALIZATION,   /* start -> end of 1st init part */
33  SYSTEM_STATE_BEFORE_MULTITASKING,     /* end of 1st -> beginning of 2nd */
34  SYSTEM_STATE_BEGIN_MULTITASKING,      /* just before multitasking starts */
35  SYSTEM_STATE_UP,                      /* normal operation */
36  SYSTEM_STATE_FAILED                   /* fatal error occurred */
37} System_state_Codes;
38
39#define SYSTEM_STATE_CODES_FIRST SYSTEM_STATE_BEFORE_INITIALIZATION
40#define SYSTEM_STATE_CODES_LAST  SYSTEM_STATE_FAILED
41
42/*
43 *  The following variable indicates whether or not this is
44 *  an multiprocessing system.
45 */
46 
47SCORE_EXTERN boolean _System_state_Is_multiprocessing;
48
49/*
50 *  The following variable contains the current system state.
51 */
52
53SCORE_EXTERN System_state_Codes _System_state_Current;
54
55/*
56 *  Make it possible for the application to get the system state information.
57 */
58
59#include <rtems/score/sysstate.inl>
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif
66/* end of include file */
Note: See TracBrowser for help on using the repository browser.