17 #ifndef _RTEMS_RTEMS_MODESIMPL_H 18 #define _RTEMS_RTEMS_MODESIMPL_H 46 return ( mode_set & masks ) ? true :
false;
132 _out_mode = old_mode_set;
134 _out_mode |= new_mode_set & mask;
135 *changed = _out_mode ^ old_mode_set;
136 *out_mode_set = _out_mode;
#define RTEMS_ASR_MASK
Definition: modes.h:67
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt(rtems_mode mode_set)
Checks if mode_set indicates that preemption is enabled.
Definition: modesimpl.h:68
RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice(rtems_mode mode_set)
Checks if mode_set indicates that timeslicing is enabled.
Definition: modesimpl.h:81
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level(rtems_mode mode_set)
Gets the interrupt level portion of the mode_set.
Definition: modesimpl.h:93
RTEMS_INLINE_ROUTINE bool _Modes_Mask_changed(rtems_mode mode_set, rtems_mode masks)
Checks if any of the mode flags in mask are set in mode_set.
Definition: modesimpl.h:41
#define RTEMS_NO_ASR
Definition: modes.h:85
#define _ISR_Set_level(_new_level)
Set current interrupt level.
Definition: isrlevel.h:140
RTEMS_INLINE_ROUTINE void _Modes_Change(rtems_mode old_mode_set, rtems_mode new_mode_set, rtems_mode mask, rtems_mode *out_mode_set, rtems_mode *changed)
Changes the modes in old_mode_set indicated by mask to the requested values in new_mode_set.
Definition: modesimpl.h:122
uint32_t ISR_Level
Definition: isrlevel.h:41
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level(rtems_mode mode_set)
Sets the current interrupt level to that specified in the mode_set.
Definition: modesimpl.h:106
#define RTEMS_TIMESLICE_MASK
Definition: modes.h:61
RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled(rtems_mode mode_set)
Checks if mode_set says that Asynchronous Signal Processing is disabled.
Definition: modesimpl.h:55
#define RTEMS_INTERRUPT_MASK
Definition: modes.h:70
#define RTEMS_PREEMPT_MASK
Definition: modes.h:64
#define RTEMS_TIMESLICE
Definition: modes.h:80
uint32_t rtems_mode
Definition: modes.h:41
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
#define RTEMS_PREEMPT
Definition: modes.h:73