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.
This commit is contained in:
Jiri Gaisler
2014-11-23 22:53:00 +01:00
committed by Daniel Hellstrom
parent 291f30f285
commit 2501814ee9

View File

@@ -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 { \