cvs commit: src/sys/alpha/alpha mp_machdep.c

Peter Wemm peter at wemm.org
Mon Dec 1 17:37:18 PST 2003


Jeff Roberson wrote:
> 
> On Mon, 1 Dec 2003, John Baldwin wrote:

> > Heh.  I am already waiting for approval from re@ to fix x86.  That was
> > definitely my bug.
> 
> Well, since ULE and UMA are the only two subsystems which make use of
> mp_maxid, can I request that it be one over the maximum id so that I can
> use it in loops like:
> for (i = 0; i < mp_maxid; i++) {
> 
> Otherwise I guess I can do <=.

What?  Change your code to:  for (i = 0; i <= mp_maxid; i++)  ? :-)

Cheers,
-Peter
--
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5



More information about the cvs-src mailing list