From owner-freebsd-arch Tue Nov 21 19:21:42 2000 Delivered-To: freebsd-arch@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 77B9337B4CF; Tue, 21 Nov 2000 19:21:40 -0800 (PST) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id WAA28087; Tue, 21 Nov 2000 22:21:19 -0500 (EST) Date: Tue, 21 Nov 2000 22:21:19 -0500 (EST) From: Daniel Eischen To: Jake Burkholder Cc: John Baldwin , Jonathan Lemon , arch@FreeBSD.ORG Subject: Re: Thread-specific data and KSEs In-Reply-To: <20001122015756.AF470BA7A@io.yi.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 21 Nov 2000, Jake Burkholder wrote: > 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. I don't necessarily even need them to point to anything. Just an index into a table is sufficient, though it might be more efficient to use it as a pointer on architectures where its large enough. -- "Some folks are into open source, but me, I'm into open bar." -- Spencer F. Katt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message