From owner-freebsd-hackers Mon Jul 15 14:27:19 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47DFA37B400 for ; Mon, 15 Jul 2002 14:27:17 -0700 (PDT) Received: from snipe.mail.pas.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6A9343E42 for ; Mon, 15 Jul 2002 14:27:16 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0196.cvx21-bradley.dialup.earthlink.net ([209.179.192.196] helo=mindspring.com) by snipe.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17UDNC-0003Fu-00; Mon, 15 Jul 2002 14:27:15 -0700 Message-ID: <3D333E03.549F18D0@mindspring.com> Date: Mon, 15 Jul 2002 14:26:27 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Stephane E. Potvin" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: NetBSD's uvm_pglistalloc equivalent? References: <20020715142136.A1012@hades.videotron.ca.> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Stephane E. Potvin" wrote: > In my porting effort to the ARM platform, I need a function that has the > functionality of NetBSD's uvm_pglistalloc. This is needed because the L1 > table of the StrongARM processor is four pages. These pages need to be > allocated contiguously. I guess that I can probably acheive this goal by > wrapping something around contigmalloc, but before I do so I just wanted > to double check that there was no already available facilities that I had > overlooked. How often must this be allocated? How many of them are needed? If you only need a small set number of them, then they can be allocated very early on in the system lifetime, which means you should allocate them in machdep.c, with the rest of the memory overlay which attempts to make memory in protected mode look like physical RAM. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message