]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In arm_gicv2m_alloc_msi(), if we found a suitable irq range, leave the loop
authorcognet <cognet@FreeBSD.org>
Tue, 25 Apr 2017 23:46:53 +0000 (23:46 +0000)
committercognet <cognet@FreeBSD.org>
Tue, 25 Apr 2017 23:46:53 +0000 (23:46 +0000)
commit87400371408ae03d45cbee2ceb683a67ebf3ce69
treecef5240912d5cceaaa92e1bfeba9d3867f8af144
parent93511705a42a76b3e009eb7ff4251edcf796b552
In arm_gicv2m_alloc_msi(), if we found a suitable irq range, leave the loop
before we increase irq again, or we'd end up choosing an irq, and then
really using the next one, even if it's not available.
Also in the inner loop, correct the end check so that we check every irq,
even the last one.
This makes the msk(4) adapter able to use MSI on Softiron Overdrive 1000.
sys/arm/arm/gic.c