38#ifndef _RTEMS_SCORE_SYSSTATE_H
39#define _RTEMS_SCORE_SYSSTATE_H
83#define SYSTEM_STATE_CODES_FIRST SYSTEM_STATE_BEFORE_INITIALIZATION
85#define SYSTEM_STATE_CODES_LAST SYSTEM_STATE_TERMINATED
87#if defined(RTEMS_MULTIPROCESSING)
88extern bool _System_state_Is_multiprocessing;
98static inline void _System_state_Set (
102 _System_state_Current = state;
112 return _System_state_Current;
123static inline bool _System_state_Is_before_initialization (
138static inline bool _System_state_Is_before_multitasking (
153static inline bool _System_state_Is_up (
168static inline bool _System_state_Is_terminated (
This header file provides basic definitions used by the API and the implementation.
System_state_Codes
System states.
Definition: sysstate.h:60
@ SYSTEM_STATE_TERMINATED
The system reached its terminal state.
Definition: sysstate.h:80
@ SYSTEM_STATE_UP
The system is up and operating normally.
Definition: sysstate.h:75
@ SYSTEM_STATE_BEFORE_MULTITASKING
The system is between end of the first phase of initialization but before multitasking is started.
Definition: sysstate.h:70
@ SYSTEM_STATE_BEFORE_INITIALIZATION
The system is before the end of the first phase of initialization.
Definition: sysstate.h:64