From owner-freebsd-ia64@FreeBSD.ORG Tue Jul 13 15:57:55 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55CC216A4CE for ; Tue, 13 Jul 2004 15:57:55 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E66043D2F for ; Tue, 13 Jul 2004 15:57:55 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from dhcp50.pn.xcllnt.net (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i6DFvsIa090808; Tue, 13 Jul 2004 08:57:55 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp50.pn.xcllnt.net (localhost [127.0.0.1]) i6DFvsri008434; Tue, 13 Jul 2004 08:57:54 -0700 (PDT) (envelope-from marcel@dhcp50.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp50.pn.xcllnt.net (8.12.11/8.12.11/Submit) id i6DFvsps008433; Tue, 13 Jul 2004 08:57:54 -0700 (PDT) (envelope-from marcel) Date: Tue, 13 Jul 2004 08:57:54 -0700 From: Marcel Moolenaar To: "Yang M.M." Message-ID: <20040713155754.GB8277@dhcp50.pn.xcllnt.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-ia64@freebsd.org Subject: Re: does FreeBSD have "per-CPU page" ? X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2004 15:57:55 -0000 On Tue, Jul 13, 2004 at 02:54:59AM +0000, Yang M.M. wrote: > Hi all, > Linux/ia64 has a "per-CPU page" in region 5 just after "gate page". The > per-CPU page provides one page of CPU-local data,which is useful on MP > machines. > My question is : does FreeBSD have such a page? If so, where is it? Yes and no. There is per-CPU data, but it's not necessarily a page and definitely is not wired at a fixed virtual address. The address of the per-CPU data is in pcpup. This happens to be register 13 (TP). It is saved in ar.k4, from which pcpup (=r13) is restored on entry into the kernel. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net