mptable: Get rid of fixup_virtual_wire
[coreboot.git] / src / mainboard / msi / ms7135 / mptable.c
index fc1caa5c67cfb6e69eb479bb7b2c7a26075c7d9d..3b191410a6c344cbb95690f6b917a1df3211378b 100644 (file)
@@ -52,7 +52,7 @@ static void *smp_write_config_table(void *v)
        {
                device_t dev;
                struct resource *res;
-               uint32_t dword;
+               u32 dword;
 
                dev = dev_find_slot(bus_ck804[0], PCI_DEVFN(sbdn + 0x1, 0));
                if (dev) {
@@ -144,12 +144,7 @@ static void *smp_write_config_table(void *v)
        PCI_INT(3, 0, 3, 17);
 
 /*Local Ints:  Type    Polarity    Trigger     Bus ID   IRQ    APIC ID PIN#*/
-       smp_write_lintsrc(mc, mp_ExtINT,
-                        MP_IRQ_TRIGGER_DEFAULT | MP_IRQ_POLARITY_DEFAULT,
-                        bus_ck804[0], 0x0, MP_APIC_ALL, 0x0);
-       smp_write_lintsrc(mc, mp_NMI,
-                        MP_IRQ_TRIGGER_DEFAULT | MP_IRQ_POLARITY_DEFAULT,
-                        bus_ck804[0], 0x0, MP_APIC_ALL, 0x1);
+       mptable_lintsrc(mc, bus_ck804[0]);
 
        /* There is no extension information... */
 
@@ -165,6 +160,6 @@ static void *smp_write_config_table(void *v)
 unsigned long write_smp_table(unsigned long addr)
 {
        void *v;
-       v = smp_write_floating_table(addr);
+       v = smp_write_floating_table(addr, 0);
        return (unsigned long)smp_write_config_table(v);
 }