Changeset 291f30f in rtems


Ignore:
Timestamp:
Nov 23, 2014, 9:53:00 PM (5 years ago)
Author:
Jiri Gaisler <jiri@…>
Branches:
4.11, master
Children:
2501814
Parents:
0d3b5d47
git-author:
Jiri Gaisler <jiri@…> (11/23/14 21:53:00)
git-committer:
Daniel Hellstrom <daniel@…> (12/02/14 13:04:04)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/include/leon.h

    r0d3b5d47 r291f30f  
    159159
    160160#define LEON_Cpu_Is_interrupt_masked( _source, _cpu ) \
    161   do {\
    162      (LEON3_IrqCtrl_Regs->mask[_cpu] & (1 << (_source))); \
    163    } while (0)
     161     (!(LEON3_IrqCtrl_Regs->mask[_cpu] & (1 << (_source))))
    164162
    165163#define LEON_Cpu_Mask_interrupt( _source, _cpu ) \
Note: See TracChangeset for help on using the changeset viewer.