From: Michael Neumann Date: Sat, 2 Oct 2010 13:47:23 +0000 (+0200) Subject: Remove mp_capable; mp_enable() uses cpu_apic_address. X-Git-Tag: v2.9.0~108 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/a0679cc71fff2f0110da9a4f60e9fc4391f5c460 Remove mp_capable; mp_enable() uses cpu_apic_address. Apply commit 50bc991ed5b5f45c656530ebf5fc8b44f24258ed for x86_64. --- diff --git a/sys/platform/pc64/x86_64/mp_machdep.c b/sys/platform/pc64/x86_64/mp_machdep.c index 8e7c812c7a..26ec728d39 100644 --- a/sys/platform/pc64/x86_64/mp_machdep.c +++ b/sys/platform/pc64/x86_64/mp_machdep.c @@ -277,7 +277,6 @@ extern inthand_t IDTVEC(fast_syscall), IDTVEC(fast_syscall32); * Local data and functions. */ -static int mp_capable; static u_int boot_address; static u_int base_memory; static int mp_finish; @@ -366,7 +365,6 @@ mp_probe(void) /* nothing found */ mpfps = (mpfps_t)0; - mp_capable = 0; return 0; found: @@ -377,8 +375,6 @@ found: mpfps = (mpfps_t)x; mptable_pass1(); - /* flag fact that we are running multiple processors */ - mp_capable = 1; return 1; } @@ -390,12 +386,7 @@ void mp_start(void) { POSTCODE(MP_START_POST); - - /* look for MP capable motherboard */ - if (mp_capable) - mp_enable(boot_address); - else - panic("MP hardware not found!"); + mp_enable(boot_address); }