Subject: Re: port-i386/35618: ioapic hangs a kernel boot
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Cherry G. Mathew <cherry.g.mathew@gmail.com>
List: netbsd-bugs
Date: 03/02/2007 03:35:02
The following reply was made to PR port-i386/35618; it has been noted by GNATS.

From: "Cherry G. Mathew" <cherry.g.mathew@gmail.com>
To: gnats-bugs@netbsd.org
Cc: port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-i386/35618: ioapic hangs a kernel boot
Date: Fri, 2 Mar 2007 03:32:13 +0000

 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)) {