[rtems commit] sparc64: Fix _CPU_ISR_Is_enabled()
Sebastian Huber
sebh at rtems.org
Mon Nov 21 09:29:25 UTC 2016
Module: rtems
Branch: master
Commit: 27eccdad87a5abaa44edf756254db687a3a05be1
Changeset: http://git.rtems.org/rtems/commit/?id=27eccdad87a5abaa44edf756254db687a3a05be1
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Nov 21 10:25:58 2016 +0100
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 11fbac4..bf6f643 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;
}
/*
More information about the vc
mailing list