Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Aug 2002 14:15:07 -0700 (PDT)
From:      Hiten Pandya <hitmaster2k@yahoo.com>
To:        Peter Wemm <peter@wemm.org>, Luigi Rizzo <rizzo@icir.org>
Cc:        Terry Lambert <tlambert2@mindspring.com>, Julian Elischer <julian@elischer.org>, smp@freebsd.org
Subject:   Re: how to create per-cpu variables in SMP kernels ? 
Message-ID:  <20020808211507.17582.qmail@web21104.mail.yahoo.com>
In-Reply-To: <20020808171105.ABA822A7D6@canning.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--- Peter Wemm <peter@wemm.org> wrote:
> However, gcc might save us at some point:
> http://gcc.gnu.org/ml/gcc-patches/2002-05/msg01719.html
> 
> It adds a __thread specifier that we could just as easily use for the
> per-cpu
> data implementation.  eg:
> + __thread int i;
> + extern __thread struct state s;
> + static __thread char *p;
> 
> Now imagine:  extern __thread struct proc *curproc;

For example, if this was used, it would not let us compile stuff on Intel's
compiler, or others.  Not a major issue in my books, but maybe for others it
is.

P.S. jFYI

  -- Hiten

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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?20020808211507.17582.qmail>