Changeset 70eff78 in rtems


Ignore:
Timestamp:
May 26, 2014, 3:08:34 PM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
d6f1ec91
Parents:
3a76d830
git-author:
Daniel Hellstrom <daniel@…> (05/26/14 15:08:34)
git-committer:
Daniel Hellstrom <daniel@…> (05/28/14 15:33:22)
Message:

LEON3: coding style clean bsp_irq_fixup()

File:
1 edited

Legend:

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

    r3a76d830 r70eff78  
    133133static __inline__ int bsp_irq_fixup(int irq)
    134134{
    135        int eirq, cpu;
    136 
    137        if (LEON3_IrqCtrl_EIrq != 0 && irq == LEON3_IrqCtrl_EIrq) {
    138                /* Get interrupt number from IRQ controller */
    139                cpu = _LEON3_Get_current_processor();
    140                eirq = LEON3_IrqCtrl_Regs->intid[cpu] & 0x1f;
    141                if (eirq & 0x10)
    142                        irq = eirq;
    143        }
    144 
    145        return irq;
     135  int eirq, cpu;
     136
     137  if (LEON3_IrqCtrl_EIrq != 0 && irq == LEON3_IrqCtrl_EIrq) {
     138    /* Get interrupt number from IRQ controller */
     139    cpu = _LEON3_Get_current_processor();
     140    eirq = LEON3_IrqCtrl_Regs->intid[cpu] & 0x1f;
     141    if (eirq & 0x10)
     142      irq = eirq;
     143  }
     144
     145  return irq;
    146146}
    147147
Note: See TracChangeset for help on using the changeset viewer.