Changeset 3a76d830 in rtems


Ignore:
Timestamp:
May 19, 2014, 8:52:18 PM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
70eff78
Parents:
5b45d51
git-author:
Daniel Hellstrom <daniel@…> (05/19/14 20:52:18)
git-committer:
Daniel Hellstrom <daniel@…> (05/28/14 15:33:22)
Message:

LEON3: add support for IRQ16..31 for CPU!=0

File:
1 edited

Legend:

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

    r5b45d51 r3a76d830  
    133133static __inline__ int bsp_irq_fixup(int irq)
    134134{
    135        int eirq;
     135       int eirq, cpu;
    136136
    137137       if (LEON3_IrqCtrl_EIrq != 0 && irq == LEON3_IrqCtrl_EIrq) {
    138138               /* Get interrupt number from IRQ controller */
    139                eirq = LEON3_IrqCtrl_Regs->intid[LEON3_Cpu_Index] & 0x1f;
     139               cpu = _LEON3_Get_current_processor();
     140               eirq = LEON3_IrqCtrl_Regs->intid[cpu] & 0x1f;
    140141               if (eirq & 0x10)
    141142                       irq = eirq;
Note: See TracChangeset for help on using the changeset viewer.