Remove the check that the Arm generic interrupt controller variant is

non-zero. This is the case on qemu, so remove it to allow us to boot there.
This change is needed to boot on qemu with ACPI.

Approved by:	re (gjb)
This commit is contained in:
Andrew Turner 2018-09-06 17:25:01 +00:00
parent 03e83a838e
commit ddb7437378

View File

@ -497,8 +497,7 @@ arm_gic_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
switch(which) {
case GIC_IVAR_HW_REV:
KASSERT(GICD_IIDR_VAR(sc->gic_iidr) < 3 &&
GICD_IIDR_VAR(sc->gic_iidr) != 0,
KASSERT(GICD_IIDR_VAR(sc->gic_iidr) < 3,
("arm_gic_read_ivar: Unknown IIDR revision %u (%.08x)",
GICD_IIDR_VAR(sc->gic_iidr), sc->gic_iidr));
*result = GICD_IIDR_VAR(sc->gic_iidr);