[PATCH 004/111] leon3: always clear interrupt controller
Daniel Hellstrom
daniel at gaisler.com
Thu Feb 26 16:38:06 UTC 2015
---
c/src/lib/libbsp/sparc/leon3/amba/amba.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/leon3/amba/amba.c b/c/src/lib/libbsp/sparc/leon3/amba/amba.c
index 70e703f..9706b25 100644
--- a/c/src/lib/libbsp/sparc/leon3/amba/amba.c
+++ b/c/src/lib/libbsp/sparc/leon3/amba/amba.c
@@ -73,10 +73,10 @@ void amba_initialize(void)
icsel = LEON3_IrqCtrl_Regs->icsel[LEON3_Cpu_Index/8];
icsel = (icsel >> ((7 - (LEON3_Cpu_Index & 0x7)) * 4)) & 0xf;
LEON3_IrqCtrl_Regs += icsel;
- LEON3_IrqCtrl_Regs->mask[LEON3_Cpu_Index] = 0;
- LEON3_IrqCtrl_Regs->force[LEON3_Cpu_Index] = 0;
- LEON3_IrqCtrl_Regs->iclear = 0xffffffff;
}
+ LEON3_IrqCtrl_Regs->mask[LEON3_Cpu_Index] = 0;
+ LEON3_IrqCtrl_Regs->force[LEON3_Cpu_Index] = 0;
+ LEON3_IrqCtrl_Regs->iclear = 0xffffffff;
/* Init Extended IRQ controller if available */
leon3_ext_irq_init();
--
1.7.0.4
More information about the devel
mailing list