Remove a bogus assertion from the gic drivers
When setting a message based interrupt range we set the base and count. In an earlier the count was implemented as an end value, however the asserts used to check this value was correct were incorrectly left in. Reported by: emaste Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
c782ea8bb5
commit
90f33f34ba
@ -538,8 +538,6 @@ arm_gic_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
|
||||
case GIC_IVAR_MBI_COUNT:
|
||||
MPASS(sc->sc_spi_start != 0);
|
||||
MPASS(sc->sc_spi_count == 0);
|
||||
MPASS(value >= sc->sc_spi_start);
|
||||
MPASS(value >= GIC_FIRST_SPI);
|
||||
|
||||
sc->sc_spi_count = value;
|
||||
sc->sc_spi_end = sc->sc_spi_start + sc->sc_spi_count;
|
||||
|
@ -506,8 +506,6 @@ gic_v3_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
|
||||
case GIC_IVAR_MBI_COUNT:
|
||||
MPASS(sc->gic_mbi_start != 0);
|
||||
MPASS(sc->gic_mbi_end == 0);
|
||||
MPASS(value >= sc->gic_mbi_start);
|
||||
MPASS(value >= GIC_FIRST_SPI);
|
||||
|
||||
sc->gic_mbi_end = value - sc->gic_mbi_start;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user