From owner-freebsd-smp  Sat Oct  6  1: 2:43 2001
Delivered-To: freebsd-smp@freebsd.org
Received: from nasu.utsunomiya-u.ac.jp (nasu.utsunomiya-u.ac.jp [160.12.128.3])
	by hub.freebsd.org (Postfix) with ESMTP id 4AE0937B40A
	for <smp@freebsd.org>; Sat,  6 Oct 2001 01:02:37 -0700 (PDT)
Received: from nantai.utsunomiya-u.ac.jp by nasu.utsunomiya-u.ac.jp (8.11.2/1.1.29.3/26Jan01-1134AM)
	id f9682J595573; Sat, 6 Oct 2001 17:02:19 +0900 (JST)
Received: from zodiac.mech.utsunomiya-u.ac.jp by nantai.utsunomiya-u.ac.jp (8.11.2/1.1.29.3/30Jan01-0241PM)
	id f9682JE76061; Sat, 6 Oct 2001 17:02:19 +0900 (JST)
Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:bKuQoBDe8EQj/bLkMsRr2akeFKGO5Qhw@zodiac.mech.utsunomiya-u.ac.jp [160.12.43.7])
	by zodiac.mech.utsunomiya-u.ac.jp (8.9.3+3.2W/3.7W/zodiac-May2000) with ESMTP id RAA02958;
	Sat, 6 Oct 2001 17:12:16 +0900 (JST)
Message-Id: <200110060812.RAA02958@zodiac.mech.utsunomiya-u.ac.jp>
To: Peter Wemm <peter@wemm.org>
Cc: smp@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject: Re: How to distinguish the SMP kernel and the UP kernel 
In-reply-to: Your message of "Sat, 06 Oct 2001 00:58:21 MST."
             <20011006075821.BCEDA380A@overcee.netplex.com.au> 
References: <20011006075821.BCEDA380A@overcee.netplex.com.au> 
Date: Sat, 06 Oct 2001 17:12:15 +0900
From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
Sender: owner-freebsd-smp@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-smp.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-smp>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-smp>
X-Loop: FreeBSD.org


>> I agree. But, some modules need to know ;-<  I was trying to make
>> the pnpbios driver into a module and it has #ifdef SMP in it.
>> 
>> >Why does the module in question care?  The only thing I would do here is
>> >possibly export a global variable saying if SMP was compiled in, nothing mo
>r
>    e.
>> 
>> This is fine, as I am not very much interested in exposing to the userland
>> which kernel configration, SMP or UP, is running.
>
>I need to commit my config / build changes that build the kernel and
>modules with identical compile options.  Remember, tuned modules go into
>/boot/kernel/* next to /boot/kernel/kernel.
>
>ie: this will not be a problem at all once this is committed since the module
>in question will have the SMP and/or APIC_IO ifdefs available.
>
>generic portable modules go in /boot/modules and dont get renamed away with
>a new kernel install.  Things that need #ifdef SMP etc cannot go here.

This is great!

Kazu

>Cheers,
>-Peter

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message