forked from Imagelibrary/rtems
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:
committed by
Daniel Hellstrom
parent
291f30f285
commit
2501814ee9
@@ -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 { \
|
||||
|
||||
Reference in New Issue
Block a user