From: Sepherosa Ziehau Date: Fri, 22 Jul 2011 02:37:00 +0000 (+0800) Subject: ioapic: Disable unused GSI instead of leaving it in unknown state X-Git-Tag: v2.12.0~300 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/289debb868df9aec0bc1ef0b12c879df2aabc1b8 ioapic: Disable unused GSI instead of leaving it in unknown state --- diff --git a/sys/platform/pc32/apic/ioapic.c b/sys/platform/pc32/apic/ioapic.c index c3f6316138..a83f670d61 100644 --- a/sys/platform/pc32/apic/ioapic.c +++ b/sys/platform/pc32/apic/ioapic.c @@ -374,7 +374,12 @@ ioapic_gsi_setup(int gsi) * don't do the default configuration. * The configuration of the target GSI * will finally setup this IRQ. + * + * This GSI is not used, disable it. */ + ioapic_pin_setup(ioapic_gsi_ioaddr(gsi), + ioapic_gsi_pin(gsi), 0, + INTR_TRIGGER_EDGE, INTR_POLARITY_HIGH); return; } trig = INTR_TRIGGER_EDGE; diff --git a/sys/platform/pc64/apic/ioapic.c b/sys/platform/pc64/apic/ioapic.c index ad0dd2c9a7..53adbfaf25 100644 --- a/sys/platform/pc64/apic/ioapic.c +++ b/sys/platform/pc64/apic/ioapic.c @@ -371,7 +371,12 @@ ioapic_gsi_setup(int gsi) * don't do the default configuration. * The configuration of the target GSI * will finally setup this IRQ. + * + * This GSI is not used, disable it. */ + ioapic_pin_setup(ioapic_gsi_ioaddr(gsi), + ioapic_gsi_pin(gsi), 0, + INTR_TRIGGER_EDGE, INTR_POLARITY_HIGH); return; } trig = INTR_TRIGGER_EDGE;