diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2014-05-26 17:08:34 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2014-05-28 17:33:22 +0200 |
commit | 70eff7897149ddad432d5e1e4e5e9eb84007740e (patch) | |
tree | ad76bf18b0440d7364874c7c1af96767a0e563e9 /c | |
parent | LEON3: add support for IRQ16..31 for CPU!=0 (diff) | |
download | rtems-70eff7897149ddad432d5e1e4e5e9eb84007740e.tar.bz2 |
LEON3: coding style clean bsp_irq_fixup()
Diffstat (limited to 'c')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/include/leon.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/include/leon.h b/c/src/lib/libbsp/sparc/leon3/include/leon.h index 57601459b0..ccf2fb7067 100644 --- a/c/src/lib/libbsp/sparc/leon3/include/leon.h +++ b/c/src/lib/libbsp/sparc/leon3/include/leon.h @@ -132,17 +132,17 @@ extern int LEON3_IrqCtrl_EIrq; static __inline__ int bsp_irq_fixup(int irq) { - int eirq, cpu; + int eirq, cpu; - if (LEON3_IrqCtrl_EIrq != 0 && irq == LEON3_IrqCtrl_EIrq) { - /* Get interrupt number from IRQ controller */ - cpu = _LEON3_Get_current_processor(); - eirq = LEON3_IrqCtrl_Regs->intid[cpu] & 0x1f; - if (eirq & 0x10) - irq = eirq; - } + if (LEON3_IrqCtrl_EIrq != 0 && irq == LEON3_IrqCtrl_EIrq) { + /* Get interrupt number from IRQ controller */ + cpu = _LEON3_Get_current_processor(); + eirq = LEON3_IrqCtrl_Regs->intid[cpu] & 0x1f; + if (eirq & 0x10) + irq = eirq; + } - return irq; + return irq; } /* Macros used for manipulating bits in LEON3 GP Timer Control Register */ |