Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/gic_v3_acpi.c
Show First 20 Lines • Show All 294 Lines • ▼ Show 20 Lines | gic_v3_acpi_count_regions(device_t dev) | ||||
acpi_walk_subtables(madt + 1, (char *)madt + madt->Header.Length, | acpi_walk_subtables(madt + 1, (char *)madt + madt->Header.Length, | ||||
madt_count_redistrib, sc); | madt_count_redistrib, sc); | ||||
/* Fall back to use the distributor GICR base address */ | /* Fall back to use the distributor GICR base address */ | ||||
if (sc->gic_redists.nregions == 0) { | if (sc->gic_redists.nregions == 0) { | ||||
acpi_walk_subtables(madt + 1, | acpi_walk_subtables(madt + 1, | ||||
(char *)madt + madt->Header.Length, | (char *)madt + madt->Header.Length, | ||||
madt_count_gicc_redistrib, sc); | madt_count_gicc_redistrib, sc); | ||||
sc->gic_redists.single = true; | |||||
} | } | ||||
acpi_unmap_table(madt); | acpi_unmap_table(madt); | ||||
return (sc->gic_redists.nregions > 0 ? 0 : ENXIO); | return (sc->gic_redists.nregions > 0 ? 0 : ENXIO); | ||||
} | } | ||||
static int | static int | ||||
gic_v3_acpi_attach(device_t dev) | gic_v3_acpi_attach(device_t dev) | ||||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |