Subject: CVS commit: src/sys/arch/x86/x86
To: None <source-changes@NetBSD.org>
From: Joerg Sonnenberger <joerg@netbsd.org>
List: source-changes
Date: 10/07/2007 14:23:42
Module Name:	src
Committed By:	joerg
Date:		Sun Oct  7 14:23:42 UTC 2007

Modified Files:
	src/sys/arch/x86/x86: intr.c ioapic.c

Log Message:
Merge intr.c (1.29.8.2) and ioapic.c (1.19.8.5) changes from jmcneill-pm:

Always write entries to all IOAPIC pins. The first 16 pins are
threated as ISA IRQs by default, the others like PCI IRQs. This avoids
inconsistencies based on incomplete BIOS setups. This resulted in early
ACPI SCI notifications to be lost, effectively breaking the Embedded
Controller on cold start on many notebooks.

Don't special case the IOAPIC setup between ioapic_attach and
ioapic_enable, always setup the correct redirections. Depend on
splhigh/disable_intr to stop interrupts and don't keep them masked in
the IOAPIC. This avoids unacknowleged edge interrupts and fixing the problem
of broken PS/2 keyboard when hitting keys during early boot.


To generate a diff of this commit:
cvs rdiff -r1.32 -r1.33 src/sys/arch/x86/x86/intr.c
cvs rdiff -r1.21 -r1.22 src/sys/arch/x86/x86/ioapic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.