From bd0d585807def78fd60f6c3fa0855df992fc8fa4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 24 Nov 2016 11:53:59 +0100 Subject: arm: Fix _CPU_ISR_Is_enabled() for ARMv7-M Update #2811. --- cpukit/score/cpu/arm/rtems/score/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h index df946798f7..0a9ca26240 100644 --- a/cpukit/score/cpu/arm/rtems/score/cpu.h +++ b/cpukit/score/cpu/arm/rtems/score/cpu.h @@ -427,7 +427,7 @@ RTEMS_INLINE_ROUTINE bool _CPU_ISR_Is_enabled( uint32_t level ) #if defined(ARM_MULTILIB_ARCH_V4) return ( level & 0x80 ) == 0; #elif defined(ARM_MULTILIB_ARCH_V7M) - return level > 0x80; + return level == 0; #endif } -- cgit v1.2.3