forked from Imagelibrary/rtems
sparc/leon3: LEON_Is_interrupt_masked for Leon3 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 #1958 in trac.
This commit is contained in:
committed by
Daniel Hellstrom
parent
0d3b5d4742
commit
291f30f285
@@ -158,9 +158,7 @@ extern rtems_interrupt_lock LEON3_IrqCtrl_Lock;
|
||||
(LEON3_IrqCtrl_Regs->ipend & (1 << (_source)))
|
||||
|
||||
#define LEON_Cpu_Is_interrupt_masked( _source, _cpu ) \
|
||||
do {\
|
||||
(LEON3_IrqCtrl_Regs->mask[_cpu] & (1 << (_source))); \
|
||||
} while (0)
|
||||
(!(LEON3_IrqCtrl_Regs->mask[_cpu] & (1 << (_source))))
|
||||
|
||||
#define LEON_Cpu_Mask_interrupt( _source, _cpu ) \
|
||||
do { \
|
||||
|
||||
Reference in New Issue
Block a user