]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm: Ignore PIC init during boot
authorPekka Enberg <penberg@cs.helsinki.fi>
Thu, 1 Apr 2010 14:23:38 +0000 (17:23 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Thu, 1 Apr 2010 14:23:38 +0000 (17:23 +0300)
We don't have interrupt injection so we can safely ignore PIC interrupt masking
during bootup.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
tools/kvm/ioport.c

index d59436d74cf37a4508742ea716ca4113f991a6ee..a627e8c1721137e45704e04f0c3b9ddc4f56b626 100644 (file)
@@ -42,6 +42,12 @@ static struct ioport_operations dummy_write_only_ioport_ops = {
 static struct ioport_operations *ioport_ops[USHRT_MAX] = {
        [0x70]          = &cmos_ram_rtc_ops,
 
+       /* 0x0020 - 0x003F - 8259A PIC 1 */
+       [0x21]          = &dummy_write_only_ioport_ops,
+
+       /* 0x00A0 - 0x00AF - 8259A PIC 2 */
+       [0xA1]          = &dummy_write_only_ioport_ops,
+
        /* 0x00F0 - 0x00FF - Math co-processor */
        [0xF0]          = &dummy_write_only_ioport_ops,
        [0xF1]          = &dummy_write_only_ioport_ops,