Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/arm/gic.c
Show First 20 Lines • Show All 1,439 Lines • ▼ Show 20 Lines | for (irq = sc->sc_spi_start; irq < sc->sc_spi_end; irq++) { | ||||
/* Check this range is valid */ | /* Check this range is valid */ | ||||
for (end_irq = irq; end_irq != irq + count; end_irq++) { | for (end_irq = irq; end_irq != irq + count; end_irq++) { | ||||
/* No free interrupts */ | /* No free interrupts */ | ||||
if (end_irq == sc->sc_spi_end) { | if (end_irq == sc->sc_spi_end) { | ||||
found = false; | found = false; | ||||
break; | break; | ||||
} | } | ||||
KASSERT((psc->gic_irqs[irq].gi_flags & GI_FLAG_MSI)!= 0, | KASSERT((psc->gic_irqs[end_irq].gi_flags & GI_FLAG_MSI)!= 0, | ||||
("%s: Non-MSI interrupt found", __func__)); | ("%s: Non-MSI interrupt found", __func__)); | ||||
/* This is already used */ | /* This is already used */ | ||||
if ((psc->gic_irqs[irq].gi_flags & GI_FLAG_MSI_USED) == | if ((psc->gic_irqs[end_irq].gi_flags & GI_FLAG_MSI_USED) == | ||||
GI_FLAG_MSI_USED) { | GI_FLAG_MSI_USED) { | ||||
found = false; | found = false; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
if (found) | if (found) | ||||
break; | break; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |