Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Oct 2001 17:12:15 +0900
From:      Kazutaka YOKOTA <yokota@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 
Message-ID:  <200110060812.RAA02958@zodiac.mech.utsunomiya-u.ac.jp>
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> 

next in thread | previous in thread | raw e-mail | index | archive | help

>> 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




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