From owner-freebsd-arm@FreeBSD.ORG Thu Jan 13 16:30:29 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 292CC1065679 for ; Thu, 13 Jan 2011 16:30:29 +0000 (UTC) (envelope-from marktinguely@gmail.com) Received: from mail-yi0-f48.google.com (mail-yi0-f48.google.com [209.85.218.48]) by mx1.freebsd.org (Postfix) with ESMTP id D4A368FC14 for ; Thu, 13 Jan 2011 16:30:28 +0000 (UTC) Received: by yib17 with SMTP id 17so860553yib.35 for ; Thu, 13 Jan 2011 08:30:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=rTBNLqXpNiotl1l+gp+Bw8YdWnpbOgIDgtOX2bmmva8=; b=agyMn/nyjzNL6IrugcStIu3QvqyuRbxH+8sVTEu/lU3vgy0XQLEgHu7hX04A5JEijw QTeRrZS7hfi7U1aC0JBAiixotJUm5zFrruM/PpZ+Y2OQLTlOQnEmoN//UOyxUiuOQmVZ uR337Hnd69bXIastFi3pKAYzhePwD4D3oWkr8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=sfKzi9N3mmyTnDGtU/VkRzoqLWPD8Wa9wv1auqAOEYpbulIvef2sGtNVfQuu+m4Hy7 9DC9omraZ/54f7jTJIgsUlYOFQ90EH4unnI/Z51vWCfkLrRfoUqrYCGIQ35f5PWoUiER K9NqOfmrm6OV5kaCHnXav4TV4aQWNlsY4w+g4= Received: by 10.42.239.132 with SMTP id kw4mr2708932icb.221.1294936227906; Thu, 13 Jan 2011 08:30:27 -0800 (PST) Received: from [192.168.1.104] (c-24-245-26-12.hsd1.mn.comcast.net [24.245.26.12]) by mx.google.com with ESMTPS id u5sm146295ics.18.2011.01.13.08.30.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Jan 2011 08:30:23 -0800 (PST) Message-ID: <4D2F289C.9080908@gmail.com> Date: Thu, 13 Jan 2011 10:30:20 -0600 From: Mark Tinguely User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-arm@freebsd.org References: <0DB595A2CB707F458400BE9663B6A7225E42CF271F@SC-VEXCH2.marvell.com> In-Reply-To: <0DB595A2CB707F458400BE9663B6A7225E42CF271F@SC-VEXCH2.marvell.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: deveshkr@marvell.com Subject: Re: Changing virtual adress space layout X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2011 16:30:29 -0000 On 1/13/2011 1:30 AM, Devesh Rai wrote: > Hi, > > I am new to FreeBSD. Can some tell how to change virtual address space layout in FreeBSD for arm? > For x86, KVA_PAGES=N option is there in FreeBSD. In Linux, I used CONFIG_VMSPLIT option. > I am looking corresponding option for arm. > > Regards > Devesh I assume you have run out of space for the device virtual addresses. KERNBASE is hard coded in sys/arm/include/vm_param.h to be 0xc0000000. There is a related variable for each device configuration: the KERNVIRTADDR "option" and "makeoption" values. This is usually in one of the "std" file file for the device. KERNVIRTADDR sets the starting location of the executable and is sometimes different than KERNBASE. The arm code does not map the from KERNBASE to 0xffff_ffff into the KVA. Instead, there is a variable that determines the maximum size of the kernel executable and kernel virtual address area. Above this defined area lies the no-cache remap memory region, device map area, high vector, etc. On a tangent note: There will be a great advantage in ARMv6/ARMv7 to go to a 2GB UVA / 2GB KVA. --Mark.