From 408609f6b9cd8e03d3886b7c150efbf7e59b5fb0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 10 Nov 2016 15:17:28 +0100 Subject: score: Add _ISR_Is_enabled() In contrast to _ISR_Get_level() the _ISR_Is_enabled() function evaluates a level parameter and returns a boolean value. Update #2811. --- cpukit/score/cpu/m68k/rtems/score/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpukit/score/cpu/m68k/rtems') diff --git a/cpukit/score/cpu/m68k/rtems/score/cpu.h b/cpukit/score/cpu/m68k/rtems/score/cpu.h index f8184dc148..5936e15b85 100644 --- a/cpukit/score/cpu/m68k/rtems/score/cpu.h +++ b/cpukit/score/cpu/m68k/rtems/score/cpu.h @@ -399,6 +399,11 @@ extern void* _VBR; #define _CPU_ISR_Flash( _level ) \ m68k_flash_interrupts( _level ) +RTEMS_INLINE_ROUTINE bool _CPU_ISR_Is_enabled( uint32_t level ) +{ + return ( level & 0x0700 ) == 0; +} + #define _CPU_ISR_Set_level( _newlevel ) \ m68k_set_interrupt_level( _newlevel ) -- cgit v1.2.3