summaryrefslogtreecommitdiffstats
path: root/c/src/exec/rtems/macros/modes.inl
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/rtems/macros/modes.inl')
-rw-r--r--c/src/exec/rtems/macros/modes.inl5
1 files changed, 2 insertions, 3 deletions
diff --git a/c/src/exec/rtems/macros/modes.inl b/c/src/exec/rtems/macros/modes.inl
index 4c8b35a1e8..5f71796c07 100644
--- a/c/src/exec/rtems/macros/modes.inl
+++ b/c/src/exec/rtems/macros/modes.inl
@@ -41,7 +41,7 @@
*/
#define _Modes_Is_asr_disabled( _mode_set ) \
- ( (_mode_set) & RTEMS_ASR_MASK )
+ (((_mode_set) & RTEMS_ASR_MASK) == RTEMS_NO_ASR)
/*PAGE
*
@@ -59,8 +59,7 @@
*/
#define _Modes_Is_timeslice( _mode_set ) \
- (((_mode_set) & (RTEMS_TIMESLICE_MASK|RTEMS_PREEMPT_MASK)) == \
- (RTEMS_TIMESLICE|RTEMS_PREEMPT) )
+ (((_mode_set) & RTEMS_TIMESLICE_MASK) == RTEMS_TIMESLICE)
/*PAGE
*