From 27eccdad87a5abaa44edf756254db687a3a05be1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 21 Nov 2016 10:25:58 +0100 Subject: sparc64: Fix _CPU_ISR_Is_enabled() Update #2820. --- cpukit/score/cpu/sparc64/rtems/score/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/cpu/sparc64/rtems/score/cpu.h b/cpukit/score/cpu/sparc64/rtems/score/cpu.h index 11fbac46a9..bf6f643d95 100644 --- a/cpukit/score/cpu/sparc64/rtems/score/cpu.h +++ b/cpukit/score/cpu/sparc64/rtems/score/cpu.h @@ -756,7 +756,7 @@ extern const CPU_Trap_table_entry _CPU_Trap_slot_template; RTEMS_INLINE_ROUTINE bool _CPU_ISR_Is_enabled( uint32_t level ) { - return ( psr & SPARC_PSTATE_IE_MASK ) != 0; + return ( level & SPARC_PSTATE_IE_MASK ) != 0; } /* -- cgit v1.2.3