diff options
| -rw-r--r-- | arch/x86/include/asm/mpspec_def.h | 10 | ||||
| -rw-r--r-- | arch/x86/kernel/mpparse.c | 26 |
2 files changed, 18 insertions, 18 deletions
diff --git a/arch/x86/include/asm/mpspec_def.h b/arch/x86/include/asm/mpspec_def.h index ba8ed0cf658d..f805682d80dc 100644 --- a/arch/x86/include/asm/mpspec_def.h +++ b/arch/x86/include/asm/mpspec_def.h | |||
| @@ -109,11 +109,11 @@ struct mpc_bus { | |||
| 109 | #define MPC_APIC_USABLE 0x01 | 109 | #define MPC_APIC_USABLE 0x01 |
| 110 | 110 | ||
| 111 | struct mpc_ioapic { | 111 | struct mpc_ioapic { |
| 112 | unsigned char mpc_type; | 112 | unsigned char type; |
| 113 | unsigned char mpc_apicid; | 113 | unsigned char apicid; |
| 114 | unsigned char mpc_apicver; | 114 | unsigned char apicver; |
| 115 | unsigned char mpc_flags; | 115 | unsigned char flags; |
| 116 | unsigned int mpc_apicaddr; | 116 | unsigned int apicaddr; |
| 117 | }; | 117 | }; |
| 118 | 118 | ||
| 119 | struct mpc_intsrc { | 119 | struct mpc_intsrc { |
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 1ccb2537e3fd..f36d9daaf12c 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
| @@ -135,20 +135,20 @@ static int bad_ioapic(unsigned long address) | |||
| 135 | 135 | ||
| 136 | static void __init MP_ioapic_info(struct mpc_ioapic *m) | 136 | static void __init MP_ioapic_info(struct mpc_ioapic *m) |
| 137 | { | 137 | { |
| 138 | if (!(m->mpc_flags & MPC_APIC_USABLE)) | 138 | if (!(m->flags & MPC_APIC_USABLE)) |
| 139 | return; | 139 | return; |
| 140 | 140 | ||
| 141 | printk(KERN_INFO "I/O APIC #%d Version %d at 0x%X.\n", | 141 | printk(KERN_INFO "I/O APIC #%d Version %d at 0x%X.\n", |
| 142 | m->mpc_apicid, m->mpc_apicver, m->mpc_apicaddr); | 142 | m->apicid, m->apicver, m->apicaddr); |
| 143 | 143 | ||
| 144 | if (bad_ioapic(m->mpc_apicaddr)) | 144 | if (bad_ioapic(m->apicaddr)) |
| 145 | return; | 145 | return; |
| 146 | 146 | ||
| 147 | mp_ioapics[nr_ioapics].mp_apicaddr = m->mpc_apicaddr; | 147 | mp_ioapics[nr_ioapics].mp_apicaddr = m->apicaddr; |
| 148 | mp_ioapics[nr_ioapics].mp_apicid = m->mpc_apicid; | 148 | mp_ioapics[nr_ioapics].mp_apicid = m->apicid; |
| 149 | mp_ioapics[nr_ioapics].mp_type = m->mpc_type; | 149 | mp_ioapics[nr_ioapics].mp_type = m->type; |
| 150 | mp_ioapics[nr_ioapics].mp_apicver = m->mpc_apicver; | 150 | mp_ioapics[nr_ioapics].mp_apicver = m->apicver; |
| 151 | mp_ioapics[nr_ioapics].mp_flags = m->mpc_flags; | 151 | mp_ioapics[nr_ioapics].mp_flags = m->flags; |
| 152 | nr_ioapics++; | 152 | nr_ioapics++; |
| 153 | } | 153 | } |
| 154 | 154 | ||
| @@ -513,11 +513,11 @@ static void __init construct_ioapic_table(int mpc_default_type) | |||
| 513 | MP_bus_info(&bus); | 513 | MP_bus_info(&bus); |
| 514 | } | 514 | } |
| 515 | 515 | ||
| 516 | ioapic.mpc_type = MP_IOAPIC; | 516 | ioapic.type = MP_IOAPIC; |
| 517 | ioapic.mpc_apicid = 2; | 517 | ioapic.apicid = 2; |
| 518 | ioapic.mpc_apicver = mpc_default_type > 4 ? 0x10 : 0x01; | 518 | ioapic.apicver = mpc_default_type > 4 ? 0x10 : 0x01; |
| 519 | ioapic.mpc_flags = MPC_APIC_USABLE; | 519 | ioapic.flags = MPC_APIC_USABLE; |
| 520 | ioapic.mpc_apicaddr = 0xFEC00000; | 520 | ioapic.apicaddr = 0xFEC00000; |
| 521 | MP_ioapic_info(&ioapic); | 521 | MP_ioapic_info(&ioapic); |
| 522 | 522 | ||
| 523 | /* | 523 | /* |
