From owner-freebsd-smp Thu Feb 25 13:11:23 1999 Delivered-To: freebsd-smp@freebsd.org Received: from trinity.radio-do.de (trinity.Radio-do.de [193.101.164.3]) by hub.freebsd.org (Postfix) with ESMTP id 882A114C8B for ; Thu, 25 Feb 1999 13:11:10 -0800 (PST) (envelope-from fn@trinity.radio-do.de) Received: (from fn@localhost) by trinity.radio-do.de (8.9.3/8.9.1) id WAA02259; Thu, 25 Feb 1999 22:10:50 +0100 (CET) (envelope-from fn) Message-ID: <19990225221049.C347@radio-do.de> Date: Thu, 25 Feb 1999 22:10:49 +0100 From: Frank Nobis To: Roger Hardiman , smp@FreeBSD.ORG Subject: Re: Run time detection of APIC References: <36D597C2.446B@cs.strath.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <36D597C2.446B@cs.strath.ac.uk>; from Roger Hardiman on Thu, Feb 25, 1999 at 06:34:42PM +0000 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Feb 25, 1999 at 06:34:42PM +0000, Roger Hardiman wrote: > > Can the module detect if we are in APIC mode at run time. I want > something like > #ifdef APIC_IO > .. do apic code > #else > .. if runtime says we are in APIC mode, panic this code has been > compiled for > .. a uni-processor kernel. > .. else do original code > #endif hw.ncpu: 2 or machdep.smp_active: 1 machdep.smp_cpus: 2 Would that do the job ? I never tried what happened, when running a SMP kernel on just one cpu. Frank -- Frank Nobis Email: PGP AVAILABLE Landgrafenstr. 130 dg3dcn http://www.radio-do.de/~fn/ 44139 Dortmund Powered by SMP FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message