Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/gic_v3_fdt.c
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | else | ||||
sc->gic_redists.nregions = redist_regions; | sc->gic_redists.nregions = redist_regions; | ||||
err = gic_v3_attach(dev); | err = gic_v3_attach(dev); | ||||
if (err != 0) | if (err != 0) | ||||
goto error; | goto error; | ||||
#ifdef INTRNG | #ifdef INTRNG | ||||
xref = OF_xref_from_node(ofw_bus_get_node(dev)); | xref = OF_xref_from_node(ofw_bus_get_node(dev)); | ||||
if (intr_pic_register(dev, xref) != 0) { | if (intr_pic_register(dev, xref, sc->gic_nirqs) != 0) { | ||||
zbb: We will have separate intr_pic_register() for ITS correct? | |||||
andrewAuthorUnsubmitted Not Done Inline ActionsYes, this is part of the reason for this patch, to allow for the extra irqs we could get from ITS. andrew: Yes, this is part of the reason for this patch, to allow for the extra irqs we could get from… | |||||
device_printf(dev, "could not register PIC\n"); | device_printf(dev, "could not register PIC\n"); | ||||
goto error; | goto error; | ||||
} | } | ||||
if (intr_pic_claim_root(dev, xref, arm_gic_v3_intr, sc, | if (intr_pic_claim_root(dev, xref, arm_gic_v3_intr, sc, | ||||
GIC_LAST_SGI - GIC_FIRST_SGI + 1) != 0) { | GIC_LAST_SGI - GIC_FIRST_SGI + 1) != 0) { | ||||
goto error; | goto error; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines |
We will have separate intr_pic_register() for ITS correct?