Use a unique name for the GICv3 ITS vmem
When there are multiple GICv3 ITS devices we don't know which vmem is for which device. Use device_get_nameunit to get a per-device name. MFC after: 2 weeks Sponsored by: DARPA, AFRL
This commit is contained in:
parent
446484bb95
commit
5652acaf96
@ -799,7 +799,7 @@ gicv3_its_attach(device_t dev)
|
||||
* XXX: This assumes there are no other interrupt controllers in the
|
||||
* system.
|
||||
*/
|
||||
sc->sc_irq_alloc = vmem_create("GICv3 ITS IRQs", 0,
|
||||
sc->sc_irq_alloc = vmem_create(device_get_nameunit(dev), 0,
|
||||
gicv3_get_nirqs(dev), 1, 0, M_FIRSTFIT | M_WAITOK);
|
||||
|
||||
sc->sc_irqs = malloc(sizeof(*sc->sc_irqs) * sc->sc_irq_length,
|
||||
|
Loading…
x
Reference in New Issue
Block a user