Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 1999 22:10:49 +0100
From:      Frank Nobis <fn@radio-do.de>
To:        Roger Hardiman <roger@cs.strath.ac.uk>, smp@FreeBSD.ORG
Subject:   Re: Run time detection of APIC
Message-ID:  <19990225221049.C347@radio-do.de>
In-Reply-To: <36D597C2.446B@cs.strath.ac.uk>; from Roger Hardiman on Thu, Feb 25, 1999 at 06:34:42PM %2B0000
References:  <36D597C2.446B@cs.strath.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990225221049.C347>