summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2014-11-23 22:53:00 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2014-12-02 14:04:11 +0100
commit2501814ee91a30ab6f12a02356707db3b9cc67f4 (patch)
tree340ad07e0136f3387e97a742f4be484dcd2cc53e
parentsparc/leon3: LEON_Is_interrupt_masked for Leon3 in leon.h wrongly defined (diff)
downloadrtems-2501814ee91a30ab6f12a02356707db3b9cc67f4.tar.bz2
sparc/leon2: LEON_Is_interrupt_masked for Leon2 in leon.h wrongly defined
Condition needs to be inverted, as a 1 in the mask register means that the interrupt is enabled. Solves ticket #1959 in trac.
-rw-r--r--c/src/lib/libbsp/sparc/leon2/include/leon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/leon2/include/leon.h b/c/src/lib/libbsp/sparc/leon2/include/leon.h
index 8d2f0c5c55..7ec6b1dcf9 100644
--- a/c/src/lib/libbsp/sparc/leon2/include/leon.h
+++ b/c/src/lib/libbsp/sparc/leon2/include/leon.h
@@ -307,7 +307,7 @@ static __inline__ int bsp_irq_fixup(int irq)
(LEON_REG.Interrupt_Pending & (1 << (_source)))
#define LEON_Is_interrupt_masked( _source ) \
- (LEON_REG.Interrupt_Masked & (1 << (_source)))
+ (!(LEON_REG.Interrupt_Mask & (1 << (_source))))
#define LEON_Mask_interrupt( _source ) \
do { \