From owner-freebsd-arch Fri Feb 1 0:15:20 2002 Delivered-To: freebsd-arch@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id 0464C37BA19 for ; Fri, 1 Feb 2002 00:14:09 -0800 (PST) Received: from pool0004.cvx22-bradley.dialup.earthlink.net ([209.179.198.4] helo=mindspring.com) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16WYpi-0007Oo-00; Fri, 01 Feb 2002 00:14:06 -0800 Message-ID: <3C5A4E44.6380900B@mindspring.com> Date: Fri, 01 Feb 2002 00:13:56 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Julian Elischer Cc: Daniel Eischen , arch@FreeBSD.ORG Subject: FWIW... maybe this way already? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Linux did what I think is an incredibly clever thing. They put the current CPU at the beginning of the stack, and then change it when/if they migrate the process. Since KSEs have stacks, as well, you could put the process and thread ID after the CPU ID, there. Saves weirding out a register to get the CPU, PID, TID, since the stack base is always known. FWIW. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message