summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-12-10 19:29:39 +0000
committerjhb <jhb@FreeBSD.org>2003-12-10 19:29:39 +0000
commitb4549a3a7d2fb7577890430fe5ac89a9310cf06f (patch)
treece6a74e9a470023a7243864da26e3665add622e6
parentee85536e88fd269603b37a6d9775a8fc66590be6 (diff)
downloadFreeBSD-src-b4549a3a7d2fb7577890430fe5ac89a9310cf06f.zip
FreeBSD-src-b4549a3a7d2fb7577890430fe5ac89a9310cf06f.tar.gz
Use NAPICID for the maximum number of local APICs rather than MAXCPU when
doing the HTT fixup. This is a step closer to possibly having an apic.ko module someday.
-rw-r--r--sys/i386/i386/mptable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/mptable.c b/sys/i386/i386/mptable.c
index 0456a2a..5f4cab4 100644
--- a/sys/i386/i386/mptable.c
+++ b/sys/i386/i386/mptable.c
@@ -55,7 +55,7 @@ __FBSDID("$FreeBSD$");
/* string defined by the Intel MP Spec as identifying the MP table */
#define MP_SIG 0x5f504d5f /* _MP_ */
-#define NAPICID 32 /* Max number of I/O APIC's */
+#define NAPICID 32 /* Max number of APIC's */
#ifdef PC98
#define BIOS_BASE (0xe8000)
@@ -816,7 +816,7 @@ mptable_hyperthread_fixup(u_int id_mask)
* physical processor. If any of those ID's are
* already in the table, then kill the fixup.
*/
- for (id = 0; id <= MAXCPU; id++) {
+ for (id = 0; id < NAPICID; id++) {
if ((id_mask & 1 << id) == 0)
continue;
/* First, make sure we are on a logical_cpus boundary. */
OpenPOWER on IntegriCloud