patch-2.1.119 linux/arch/i386/kernel/smp.c
Next file: linux/arch/ppc/kernel/pmac_setup.c
Previous file: linux/arch/i386/kernel/irq.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Wed Aug 26 10:00:31 1998
- Orig file:
v2.1.118/linux/arch/i386/kernel/smp.c
- Orig date:
Tue Aug 18 22:02:02 1998
diff -u --recursive --new-file v2.1.118/linux/arch/i386/kernel/smp.c linux/arch/i386/kernel/smp.c
@@ -245,7 +245,7 @@
{
char str[16];
int count=sizeof(*mpc);
- int apics=0;
+ int ioapics = 0;
unsigned char *mpt=((unsigned char *)mpc)+count;
if(memcmp(mpc->mpc_signature,MPC_SIGNATURE,4))
@@ -364,11 +364,15 @@
(struct mpc_config_ioapic *)mpt;
if(m->mpc_flags&MPC_APIC_USABLE)
{
- apics++;
+ ioapics++;
printk("I/O APIC #%d Version %d at 0x%lX.\n",
m->mpc_apicid,m->mpc_apicver,
m->mpc_apicaddr);
- mp_ioapic_addr = m->mpc_apicaddr;
+ /*
+ * we use the first one only currently
+ */
+ if (!ioapics)
+ mp_ioapic_addr = m->mpc_apicaddr;
}
mpt+=sizeof(*m);
count+=sizeof(*m);
@@ -400,8 +404,8 @@
}
}
}
- if(apics>1)
- printk("Warning: Multiple APICs not supported.\n");
+ if (ioapics > 1)
+ printk("Warning: Multiple IO-APICs not yet supported.\n");
return num_processors;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov