ARMv7-A GIC: Fix another initialization errors

This commit is contained in:
Gregory Nutt 2016-04-01 08:52:18 -06:00
parent ddc1b88027
commit f698f3dcbe
1 changed files with 7 additions and 1 deletions

View File

@ -102,10 +102,16 @@ void arm_gic0_initialize(void)
for (irq = GIC_IRQ_SPI; irq < nlines; irq += 32)
{
putreg32(0x00000000, GIC_ICDISR(irq)); /* SPIs secure */
putreg32(0xffffffff, GIC_ICDICFR(irq)); /* SPIs edge triggered */
putreg32(0xffffffff, GIC_ICDICER(irq)); /* SPIs disabled */
}
/* Registers with 2-bits per interrupt */
for (irq = GIC_IRQ_SPI; irq < nlines; irq += 16)
{
putreg32(0xffffffff, GIC_ICDICFR(irq)); /* SPIs edge triggered */
}
/* Registers with 8-bits per interrupt */
for (irq = GIC_IRQ_SPI; irq < nlines; irq += 4)