Date: Mon, 12 Aug 2002 13:27:42 -0700 From: Peter Wemm <peter@wemm.org> To: Terry Lambert <tlambert2@mindspring.com> Cc: hiten@uk.FreeBSD.org, Luigi Rizzo <rizzo@icir.org>, Julian Elischer <julian@elischer.org>, smp@freebsd.org Subject: Re: how to create per-cpu variables in SMP kernels ? Message-ID: <20020812202742.8A2D42A7D6@canning.wemm.org> In-Reply-To: <3D53FBAA.6BBEF4DA@mindspring.com>
index | next in thread | previous in thread | raw e-mail
Terry Lambert wrote:
> Peter Wemm wrote:
> > > > 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.
> >
> > And you think the current gcc-specific code compiles well on other compiler
s?
>
>
> I thought everyone had linker sets, inline assembly with GNU
> syntax, __attribute(packed), and functions that let you use
> a stack variable as an array index... 8-) 8-).
Heh, linker sets^H^H^H^H^Hsections may be a standard part of the ELF
linker, but you access them via gcc extensions or by standalone .s
assembler files.
> -- Terry
>
Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020812202742.8A2D42A7D6>
