From owner-freebsd-arch@FreeBSD.ORG Thu Jun 18 02:30:26 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D03CA1065673 for ; Thu, 18 Jun 2009 02:30:26 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout020.mac.com (asmtpout020.mac.com [17.148.16.95]) by mx1.freebsd.org (Postfix) with ESMTP id 598428FC1A for ; Thu, 18 Jun 2009 02:30:26 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from MacBook-Pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp020.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KLE00CLGUUMRP40@asmtp020.mac.com>; Wed, 17 Jun 2009 18:30:23 -0700 (PDT) Message-id: <94B46331-19AB-4174-BEDA-8B4B0A525B45@mac.com> From: Marcel Moolenaar To: Jeff Roberson In-reply-to: Date: Wed, 17 Jun 2009 18:30:22 -0700 References: <20090609201127.GA50903@alchemy.franken.de> <4A2F1148.9090706@freebsd.org> X-Mailer: Apple Mail (2.935.3) Cc: arch@freebsd.org, Peter Grehan , Marius Strobl Subject: Re: Dynamic pcpu, arm, mips, powerpc, sun, etc. help needed X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2009 02:30:27 -0000 On Jun 17, 2009, at 3:55 PM, Jeff Roberson wrote: > > On Tue, 9 Jun 2009, Peter Grehan wrote: > >>> As for sparc64 allocating the storage for the dynamic area >>> from end probably isn't a good idea as the pmap code assumes >>> that the range from KERNBASE to end is covered by the pages >>> allocated by and locked into the TLB for the kernel by the >>> loader >> >> Ditto for ppc. It's possible to get the additional space from >> within or after return from pmap_bootstrap() (like thread0's >> kstack, or the msgbuf). > > http://people.freebsd.org/~jeff/dpcpu.diff > > I have updated this patch based on feedback relating to various > architectures md code. I tried to model most architectures after > the way msgbuf memory was taken. I have no capacity to test > anything other than i386 and amd64. ARM is reported to work with > one minor diff. Apparently sparc64 worked with the earlier diff but > this should be cleaner. If anyone can report back on sparc64, mips, > or powerpc, I'd appreciate it. Can you fix the ia64 diff by moving the following lines up as well: /* But if the bootstrap tells us otherwise, believe it! */ if (bootinfo.bi_kernend) kernend = round_page(bootinfo.bi_kernend); Otherwise we're using the wrong kernend value for dpcpu_init() and also override what dpcpu_init() did to kernend. Thanks, -- Marcel Moolenaar xcllnt@mac.com