Subject: Re: port-i386/35618: ioapic hangs a kernel boot
To: None <gnats-bugs@netbsd.org>
From: Cherry G. Mathew <cherry.g.mathew@gmail.com>
List: netbsd-bugs
Date: 03/02/2007 03:32:13
On 2/25/07, Cherry G. Mathew <cherry.g.mathew@gmail.com> wrote:
> Possible fix below.

Here's a better one:

Cheers,
-- 
~Cherry

*** acpi_machdep.c.~1.13.~	Fri Mar  2 05:46:26 2007
--- acpi_machdep.c	Fri Mar  2 05:48:28 2007
***************
*** 152,157 ****
--- 152,161 ----
  	for (i = 0; i < mp_nbus; i++) {
  		for (mip = mp_busses[i].mb_intrs; mip != NULL;
  		     mip = mip->next) {
+ 			/* Check for MADT Override. */
+ 			if ((mip->sflags & MPI_OVR) &&
+ 			    (mip->bus_pin == InterruptNumber))
+ 				InterruptNumber = mip->global_int;
  			if (mip->global_int == (int)InterruptNumber) {
  				h = mip->ioapic_ih;
  				if (APIC_IRQ_ISLEGACY(h)) {