From owner-freebsd-arch Tue Nov 21 23:50:59 2000 Delivered-To: freebsd-arch@freebsd.org Received: from tele-post-20.mail.demon.net (tele-post-20.mail.demon.net [194.217.242.20]) by hub.freebsd.org (Postfix) with ESMTP id DBE0C37B4C5; Tue, 21 Nov 2000 23:50:56 -0800 (PST) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by tele-post-20.mail.demon.net with esmtp (Exim 2.12 #2) id 13yUgB-000FUJ-0K; Wed, 22 Nov 2000 07:50:55 +0000 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id HAA90277; Wed, 22 Nov 2000 07:53:51 GMT (envelope-from dfr@nlsystems.com) Date: Wed, 22 Nov 2000 07:51:35 +0000 (GMT) From: Doug Rabson To: Jake Burkholder Cc: John Baldwin , Daniel Eischen , 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: > > 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