Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build a uniprocessor kernel



On Wed, Nov 12, 2008 at 03:38:37PM -0800, Aaron J. Grier wrote:

> On Thu, Nov 06, 2008 at 10:36:10PM +0900, Hiroshi SAKURAI wrote:
> > Hi,
> > 
> > On Thu, Nov 6, 2008 at 7:30 PM, Emmanuel Dreyfus 
> > <manu%netbsd.org@localhost> wrote:
> > > Hello
> > >
> > > Ho are we supposed to build a uniprocessor kernel?
> > > If I add "no options MULTIPROCESSOR", then the build will fail:
> > > ../../../../kern/kern_stub.c:159:5: error: #error __HAVE_PREEMPTION
> > > requires MULTIPROCESSOR
> > 
> > `cvs log GENERIC' says MULTIPROCESSOR is mandatory.
> > 
> > -----
> > 
> > revision 1.891
> > date: 2008/04/30 15:29:11;  author: ad;  state: Exp;  lines: +2 -11
> > For PR kern/38537:
> > 
> > - Make MULTIPROCESSOR mandatory on i386.
> 
> if it's mandatory, why does the knob still exist?

It is still an option on other ports. Presumably there would be complaints
if it was made mandatory elsewhere. For x86 it does not pose a performance
or code size problem.

Andrew


Home | Main Index | Thread Index | Old Index