arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 1 | #include <console/console.h> |
| 2 | #include <arch/smp/mpspec.h> |
| 3 | #include <device/pci.h> |
| 4 | #include <string.h> |
| 5 | #include <stdint.h> |
Yinghai Lu | 6d74d76 | 2006-10-04 23:57:49 +0000 | [diff] [blame] | 6 | #include <cpu/amd/amdk8_sysconf.h> |
| 7 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 8 | extern unsigned char bus_isa; |
| 9 | extern unsigned char bus_ck804_0; //1 |
| 10 | extern unsigned char bus_ck804_1; //2 |
| 11 | extern unsigned char bus_ck804_2; //3 |
| 12 | extern unsigned char bus_ck804_3; //4 |
| 13 | extern unsigned char bus_ck804_4; //5 |
| 14 | extern unsigned char bus_ck804_5; //6 |
| 15 | extern unsigned char bus_8131_0; //7 |
| 16 | extern unsigned char bus_8131_1; //8 |
| 17 | extern unsigned char bus_8131_2; //9 |
| 18 | extern unsigned char bus_ck804b_0;//a |
| 19 | extern unsigned char bus_ck804b_1;//b |
| 20 | extern unsigned char bus_ck804b_2;//c |
| 21 | extern unsigned char bus_ck804b_3;//d |
| 22 | extern unsigned char bus_ck804b_4;//e |
| 23 | extern unsigned char bus_ck804b_5;//f |
| 24 | extern unsigned apicid_ck804; |
| 25 | extern unsigned apicid_8131_1; |
| 26 | extern unsigned apicid_8131_2; |
| 27 | extern unsigned apicid_ck804b; |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 28 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 29 | extern unsigned sbdn3; |
| 30 | extern unsigned sbdnb; |
Yinghai Lu | 13f1c2a | 2005-07-08 02:49:49 +0000 | [diff] [blame] | 31 | |
Myles Watson | 54913b9 | 2009-10-13 20:00:09 +0000 | [diff] [blame] | 32 | static void *smp_write_config_table(void *v) |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 33 | { |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 34 | struct mp_config_table *mc; |
Yinghai Lu | 6d74d76 | 2006-10-04 23:57:49 +0000 | [diff] [blame] | 35 | unsigned sbdn; |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 36 | unsigned char bus_num; |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 37 | int i; |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 38 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 39 | mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 40 | |
Uwe Hermann | 55dc223 | 2010-10-25 15:32:07 +0000 | [diff] [blame] | 41 | mptable_init(mc, "S2895 ", LAPIC_ADDR); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 42 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 43 | smp_write_processors(mc); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 44 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 45 | get_bus_conf(); |
Yinghai Lu | 6d74d76 | 2006-10-04 23:57:49 +0000 | [diff] [blame] | 46 | sbdn = sysconf.sbdn; |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 47 | |
| 48 | /*Bus: Bus ID Type*/ |
| 49 | /* define bus and isa numbers */ |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 50 | for(bus_num = 0; bus_num < bus_isa; bus_num++) { |
| 51 | smp_write_bus(mc, bus_num, "PCI "); |
| 52 | } |
| 53 | smp_write_bus(mc, bus_isa, "ISA "); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 54 | |
| 55 | /*I/O APICs: APIC ID Version State Address*/ |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 56 | { |
| 57 | device_t dev; |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 58 | struct resource *res; |
| 59 | uint32_t dword; |
| 60 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 61 | dev = dev_find_slot(bus_ck804_0, PCI_DEVFN(sbdn+ 0x1,0)); |
| 62 | if (dev) { |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 63 | res = find_resource(dev, PCI_BASE_ADDRESS_1); |
| 64 | if (res) { |
| 65 | smp_write_ioapic(mc, apicid_ck804, 0x11, res->base); |
| 66 | } |
| 67 | |
Myles Watson | 3d1d3b2 | 2008-04-23 20:40:55 +0000 | [diff] [blame] | 68 | /* Initialize interrupt mapping*/ |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 69 | |
Myles Watson | 3d1d3b2 | 2008-04-23 20:40:55 +0000 | [diff] [blame] | 70 | dword = 0x0120d218; |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 71 | pci_write_config32(dev, 0x7c, dword); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 72 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 73 | dword = 0x12008a00; |
| 74 | pci_write_config32(dev, 0x80, dword); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 75 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 76 | dword = 0x00080d7d; |
| 77 | pci_write_config32(dev, 0x84, dword); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 78 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 79 | } |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 80 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 81 | dev = dev_find_slot(bus_8131_0, PCI_DEVFN(sbdn3,1)); |
| 82 | if (dev) { |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 83 | res = find_resource(dev, PCI_BASE_ADDRESS_0); |
| 84 | if (res) { |
| 85 | smp_write_ioapic(mc, apicid_8131_1, 0x11, res->base); |
| 86 | } |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 87 | } |
| 88 | dev = dev_find_slot(bus_8131_0, PCI_DEVFN(sbdn3+1,1)); |
| 89 | if (dev) { |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 90 | res = find_resource(dev, PCI_BASE_ADDRESS_0); |
| 91 | if (res) { |
| 92 | smp_write_ioapic(mc, apicid_8131_2, 0x11, res->base); |
| 93 | } |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 94 | } |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 95 | |
Yinghai Lu | 6d74d76 | 2006-10-04 23:57:49 +0000 | [diff] [blame] | 96 | if(sysconf.pci1234[2] & 0xf) { |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 97 | dev = dev_find_slot(bus_ck804b_0, PCI_DEVFN(sbdnb + 0x1,0)); |
| 98 | if (dev) { |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 99 | res = find_resource(dev, PCI_BASE_ADDRESS_1); |
| 100 | if (res) { |
| 101 | smp_write_ioapic(mc, apicid_ck804b, 0x11, res->base); |
| 102 | } |
| 103 | |
Myles Watson | 34b1d4e | 2009-03-10 20:56:54 +0000 | [diff] [blame] | 104 | dword = 0x0000d218; // Why does the factory BIOS have 0? |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 105 | pci_write_config32(dev, 0x7c, dword); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 106 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 107 | dword = 0x00000000; |
| 108 | pci_write_config32(dev, 0x80, dword); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 109 | |
Myles Watson | 34b1d4e | 2009-03-10 20:56:54 +0000 | [diff] [blame] | 110 | dword = 0x00000d00; // Same here. |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 111 | pci_write_config32(dev, 0x84, dword); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 112 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 113 | } |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 114 | } |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 115 | |
| 116 | } |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 117 | |
Patrick Georgi | c5b87c8 | 2010-05-20 15:28:19 +0000 | [diff] [blame] | 118 | mptable_add_isa_interrupts(mc, bus_isa, apicid_ck804, 1); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 119 | |
Patrick Georgi | c5b87c8 | 2010-05-20 15:28:19 +0000 | [diff] [blame] | 120 | /*I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# */ |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 121 | // Onboard ck804 smbus |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 122 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804_0, ((sbdn+1)<<2)|1, apicid_ck804, 0xa); |
Yinghai Lu | 13f1c2a | 2005-07-08 02:49:49 +0000 | [diff] [blame] | 123 | // 10 |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 124 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 125 | // Onboard ck804 USB 1.1 |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 126 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804_0, ((sbdn+2)<<2)|0, apicid_ck804, 0x15); // 21 |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 127 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 128 | // Onboard ck804 USB 2 |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 129 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804_0, ((sbdn+2)<<2)|1, apicid_ck804, 0x14); // 20 |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 130 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 131 | // Onboard ck804 Audio |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 132 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804_0, ((sbdn+4)<<2)|0, apicid_ck804, 0x14); // 20 |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 133 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 134 | // Onboard ck804 SATA 0 |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 135 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804_0, ((sbdn +7)<<2)|0, apicid_ck804, 0x17); // 23 |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 136 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 137 | // Onboard ck804 SATA 1 |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 138 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804_0, ((sbdn +8)<<2)|0, apicid_ck804, 0x16); // 22 |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 139 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 140 | // Onboard ck804 NIC |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 141 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804_0, ((sbdn +0x0a)<<2)|0, apicid_ck804, 0x15); // 21 |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 142 | |
Myles Watson | 34b1d4e | 2009-03-10 20:56:54 +0000 | [diff] [blame] | 143 | //Slot PCIE x16 |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 144 | for(i=0;i<4;i++) { |
| 145 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804_5, (0x00<<2)|i, apicid_ck804, 0x10 + (2+i+4-sbdn%4)%4); |
| 146 | } |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 147 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 148 | //Onboard Firewire |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 149 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804_1, (0x05<<2)|0, apicid_ck804, 0x13); // 19 |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 150 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 151 | //Slot 2 PCI 32 |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 152 | for(i=0;i<4;i++) { |
Myles Watson | 34b1d4e | 2009-03-10 20:56:54 +0000 | [diff] [blame] | 153 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804_1, (0x04<<2)|i, apicid_ck804, 0x10 + (0+i)%4); //16 |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 154 | } |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 155 | |
Yinghai Lu | 6d74d76 | 2006-10-04 23:57:49 +0000 | [diff] [blame] | 156 | if(sysconf.pci1234[2] & 0xf) { |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 157 | //Onboard ck804b NIC |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 158 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804b_0, ((sbdnb+0x0a)<<2)|0, apicid_ck804b, 0x15);//24+4+4+21=53 |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 159 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 160 | //Slot 3 PCIE x16 |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 161 | for(i=0;i<4;i++) { |
| 162 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_ck804b_5, (0x00<<2)|i, apicid_ck804b, 0x10 + (2+i+4-sbdnb%4)%4); |
| 163 | } |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 164 | } |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 165 | |
Yinghai Lu | 13f1c2a | 2005-07-08 02:49:49 +0000 | [diff] [blame] | 166 | //Channel B of 8131 |
| 167 | |
| 168 | //Slot 4 PCI-X 100/66 |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 169 | for(i=0;i<4;i++) { |
| 170 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_8131_2, (4<<2)|i, apicid_8131_2, (0+i)%4); |
| 171 | } |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 172 | |
Yinghai Lu | 13f1c2a | 2005-07-08 02:49:49 +0000 | [diff] [blame] | 173 | //Slot 5 PCIX 100/66 |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 174 | for(i=0;i<4;i++) { |
| 175 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_8131_2, (9<<2)|i, apicid_8131_2, (1+i)%4); // 29 |
| 176 | } |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 177 | |
Yinghai Lu | 13f1c2a | 2005-07-08 02:49:49 +0000 | [diff] [blame] | 178 | //OnBoard LSI SCSI |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 179 | for(i=0;i<2;i++) { |
| 180 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_8131_2, (6<<2)|i, apicid_8131_2, (2+i)%4); //30 |
| 181 | } |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 182 | |
Yinghai Lu | 13f1c2a | 2005-07-08 02:49:49 +0000 | [diff] [blame] | 183 | //Channel A of 8131 |
| 184 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 185 | //Slot 6 PCIX 133/100/66 |
| 186 | for(i=0;i<4;i++) { |
| 187 | smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_8131_1, (4<<2)|i, apicid_8131_1, (0+i)%4); //24 |
| 188 | } |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 189 | |
| 190 | /*Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN#*/ |
Tobias Diedrich | b907d32 | 2010-10-26 22:40:16 +0000 | [diff] [blame^] | 191 | smp_write_lintsrc(mc, mp_ExtINT, MP_IRQ_TRIGGER_EDGE|MP_IRQ_POLARITY_HIGH, bus_isa, 0x0, MP_APIC_ALL, 0x0); |
| 192 | smp_write_lintsrc(mc, mp_NMI, MP_IRQ_TRIGGER_EDGE|MP_IRQ_POLARITY_HIGH, bus_isa, 0x0, MP_APIC_ALL, 0x1); |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 193 | /* There is no extension information... */ |
| 194 | |
| 195 | /* Compute the checksums */ |
| 196 | mc->mpe_checksum = smp_compute_checksum(smp_next_mpc_entry(mc), mc->mpe_length); |
| 197 | mc->mpc_checksum = smp_compute_checksum(mc, mc->mpc_length); |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 198 | printk(BIOS_DEBUG, "Wrote the mp table end at: %p - %p\n", |
arch import user (historical) | 98d0d30 | 2005-07-06 17:13:46 +0000 | [diff] [blame] | 199 | mc, smp_next_mpe_entry(mc)); |
| 200 | return smp_next_mpe_entry(mc); |
| 201 | } |
| 202 | |
| 203 | unsigned long write_smp_table(unsigned long addr) |
| 204 | { |
| 205 | void *v; |
| 206 | v = smp_write_floating_table(addr); |
| 207 | return (unsigned long)smp_write_config_table(v); |
| 208 | } |