Do not trust IRQ reported by ACPI. There are cases when it is wrong.

This commit is contained in:
Alexander Motin 2010-06-23 05:43:21 +00:00
parent 258c09af47
commit 926911c8ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209456
2 changed files with 2 additions and 0 deletions

View File

@ -259,6 +259,7 @@ atrtc_attach(device_t dev)
if (!atrtcclock_disable &&
(resource_int_value(device_get_name(dev), device_get_unit(dev),
"clock", &i) != 0 || i != 0)) {
sc->intr_rid = -1;
if (!(sc->intr_res = bus_alloc_resource(dev, SYS_RES_IRQ,
&sc->intr_rid, 8, 8, 1, RF_ACTIVE))) {
device_printf(dev,"Can't map interrupt.\n");

View File

@ -535,6 +535,7 @@ attimer_attach(device_t dev)
tc_init(&sc->tc);
if (resource_int_value(device_get_name(dev), device_get_unit(dev),
"clock", &i) != 0 || i != 0) {
sc->intr_rid = -1;
if (!(sc->intr_res = bus_alloc_resource(dev, SYS_RES_IRQ,
&sc->intr_rid, 0, 0, 1, RF_ACTIVE))) {
device_printf(dev,"Can't map interrupt.\n");