Date: Wed, 22 Nov 2000 07:51:35 +0000 (GMT) From: Doug Rabson <dfr@nlsystems.com> To: Jake Burkholder <jburkhol@home.com> Cc: John Baldwin <jhb@freebsd.org>, Daniel Eischen <eischen@vigrid.com>, Jonathan Lemon <jlemon@flugsvamp.com>, arch@freebsd.org Subject: Re: Thread-specific data and KSEs Message-ID: <Pine.BSF.4.21.0011220748390.247-100000@salmon.nlsystems.com> In-Reply-To: <20001122015756.AF470BA7A@io.yi.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 21 Nov 2000, Jake Burkholder wrote: > > Well, %gs would cover x86 and k64. I think ia64 has several application > > registers that are available for OS use and we could steal one of those. I'm > > not sure about the alpha though. > > > > Doug uses $8 (t7) on the alpha for the per-cpu data pointer, and r13 > on ia64. Not that that means anything to me. > > alpha/inclue/globals.h: > > register struct globaldata *globalp __asm__("$8"); > > ia64/include/globals.h: > > register struct globaldata *globalp __asm__("r13"); > > Its not really relevant if they're the same in and out of the kernel > cause the memory isn't addressable in both places anyway. For alpha in user mode, we should use the 'process unique value' which is accessable with 'call_pal PAL_rdunique' and 'call_pal PAL_wrunique'. In kernel mode, just stick something in the pcpu structure probably. -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011220748390.247-100000>