freebsd-nq/sys/x86
Andriy Gapon ff08349df5 ioapic_program_intpin: program high bits before low bits
Programming the low bits has a side-effect if unmasking the pin if it is
not disabled.  So if an interrupt was pending then it would be delivered
with the correct new vector but to the incorrect old LAPIC.

This fix could be made clearer by preserving the mask bit while
programming the low bits and then explicitly resetting the mask bit
after all the programming is done.

Probability to trip over the fixed bug could be increased by bootverbose
because printing of the interrupt information in ioapic_assign_cpu
lengthened the time window during which an interrupt could arrive while
a pin is masked.

Reported by:	Andreas Longwitz <longwitz@incore.de>
Tested by:	Andreas Longwitz <longwitz@incore.de>
MFC after:	12 days
2012-12-01 18:16:14 +00:00
..
acpica Merge ACPICA 20120816. 2012-08-16 20:54:52 +00:00
bios Add missing header needed by free(9). 2012-09-30 15:42:20 +00:00
cpufreq This isn't functionally identical. In some cases a hint to disable 2012-10-22 13:06:09 +00:00
include Provide the reading and display of the Standard Extended Features, 2012-11-01 15:14:37 +00:00
isa This isn't functionally identical. In some cases a hint to disable 2012-10-22 13:06:09 +00:00
pci Trim stray blank line. 2012-04-11 21:00:33 +00:00
x86 ioapic_program_intpin: program high bits before low bits 2012-12-01 18:16:14 +00:00