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

4.104.114.84.95
Last change on this file since 1a8fde6c was 1a8fde6c, checked in by Joel Sherrill <joel.sherrill@…>, on 03/06/96 at 21:34:57

Removed prototyes for static inline routines and moved the comments into
the inline implementation. The impetus for this was twofold. First,
it is incorrect to have static inline prototypes when using the macro
implementation. Second, this reduced the number of lines in the include
files seen by rtems.h by about 2000 lines.

Next we restricted visibility for the inline routines to inside the
executive itself EXCEPT for a handful of objects. This reduced the
number of include files included by rtems.h by 40 files and reduced
the lines in the include files seen by rtems.h by about 6000 lines.

In total, these reduced the compile time of the entire RTEMS tree by 20%.
This results in about 8 minutes savings on the SparcStation? 10 morgana.

  • Property mode set to 100644
File size: 1.6 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 
47EXTERN boolean _System_state_Is_multiprocessing;
48
49/*
50 *  The following variable contains the current system state.
51 */
52
53EXTERN 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.