diff options
author | mav <mav@FreeBSD.org> | 2010-06-23 05:43:21 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2010-06-23 05:43:21 +0000 |
commit | 70e4b2fc33e5e74ceea3b11d7be71558fa691071 (patch) | |
tree | 300ee203b7b032d3393cb5a65604c199ff6d62bc /sys | |
parent | 7035375dd26a6e00a406e0a4eeb207c3abe4df55 (diff) | |
download | FreeBSD-src-70e4b2fc33e5e74ceea3b11d7be71558fa691071.zip FreeBSD-src-70e4b2fc33e5e74ceea3b11d7be71558fa691071.tar.gz |
Do not trust IRQ reported by ACPI. There are cases when it is wrong.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/x86/isa/atrtc.c | 1 | ||||
-rw-r--r-- | sys/x86/isa/clock.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/x86/isa/atrtc.c b/sys/x86/isa/atrtc.c index dc0a89b..a59528b 100644 --- a/sys/x86/isa/atrtc.c +++ b/sys/x86/isa/atrtc.c @@ -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"); diff --git a/sys/x86/isa/clock.c b/sys/x86/isa/clock.c index 69327d0..8088644 100644 --- a/sys/x86/isa/clock.c +++ b/sys/x86/isa/clock.c @@ -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"); |