From owner-freebsd-arm@FreeBSD.ORG Thu May 29 17:16:54 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D73CBF5; Thu, 29 May 2014 17:16:54 +0000 (UTC) Received: from kanar.ci0.org (kanar.ci0.org [IPv6:2001:bc8:35e6::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E8F7E2051; Thu, 29 May 2014 17:16:53 +0000 (UTC) Received: from kanar.ci0.org (pluxor@localhost [127.0.0.1]) by kanar.ci0.org (8.14.8/8.14.8) with ESMTP id s4THGf58005258; Thu, 29 May 2014 19:16:41 +0200 (CEST) (envelope-from cognet@ci0.org) Received: (from doginou@localhost) by kanar.ci0.org (8.14.8/8.14.8/Submit) id s4THGfJN005257; Thu, 29 May 2014 19:16:41 +0200 (CEST) (envelope-from cognet@ci0.org) X-Authentication-Warning: kanar.ci0.org: doginou set sender to cognet@ci0.org using -f Date: Thu, 29 May 2014 19:16:41 +0200 From: Olivier Houchard To: Adrian Chadd Subject: Re: svn commit: r266850 - in head/sys/arm/xscale: i80321 i8134x ixp425 pxa Message-ID: <20140529171641.GA5246@ci0.org> References: <201405291656.s4TGudoD002868@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2014 17:16:54 -0000 On Thu, May 29, 2014 at 10:14:53AM -0700, Adrian Chadd wrote: > Have you tested this on xscale hardware? Yeah, my two last commits were an attempt to get the AVILA kernel to boot again. Olivier > > On 29 May 2014 09:56, Olivier Houchard wrote: > > Author: cognet > > Date: Thu May 29 16:56:39 2014 > > New Revision: 266850 > > URL: http://svnweb.freebsd.org/changeset/base/266850 > > > > Log: > > Do not hand the VM the memory used for stacks/page tables/etc. > > > > Modified: > > head/sys/arm/xscale/i80321/ep80219_machdep.c > > head/sys/arm/xscale/i80321/iq31244_machdep.c > > head/sys/arm/xscale/i8134x/crb_machdep.c > > head/sys/arm/xscale/ixp425/avila_machdep.c > > head/sys/arm/xscale/pxa/pxa_machdep.c > > > > Modified: head/sys/arm/xscale/i80321/ep80219_machdep.c > > ============================================================================== > > --- head/sys/arm/xscale/i80321/ep80219_machdep.c Thu May 29 16:54:15 2014 (r266849) > > +++ head/sys/arm/xscale/i80321/ep80219_machdep.c Thu May 29 16:56:39 2014 (r266850) > > @@ -341,6 +341,10 @@ initarm(struct arm_boot_params *abp) > > * Prepare the list of physical memory available to the vm subsystem. > > */ > > arm_physmem_hardware_region(IQ80321_SDRAM_START, memsize); > > + arm_physmem_exclude_region(freemem_pt, KERNPHYSADDR - > > + freemem_pt, EXFLAG_NOALLOC); > > + arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 - > > + freemempos, EXFLAG_NOALLOC); > > arm_physmem_exclude_region(abp->abp_physaddr, > > virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC); > > arm_physmem_init_kernel_globals(); > > > > Modified: head/sys/arm/xscale/i80321/iq31244_machdep.c > > ============================================================================== > > --- head/sys/arm/xscale/i80321/iq31244_machdep.c Thu May 29 16:54:15 2014 (r266849) > > +++ head/sys/arm/xscale/i80321/iq31244_machdep.c Thu May 29 16:56:39 2014 (r266850) > > @@ -343,6 +343,10 @@ initarm(struct arm_boot_params *abp) > > * Prepare the list of physical memory available to the vm subsystem. > > */ > > arm_physmem_hardware_region(SDRAM_START, memsize); > > + arm_physmem_exclude_region(freemem_pt, KERNPHYSADDR - > > + freemem_pt, EXFLAG_NOALLOC); > > + arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 - > > + freemempos, EXFLAG_NOALLOC); > > arm_physmem_exclude_region(abp->abp_physaddr, > > virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC); > > arm_physmem_init_kernel_globals(); > > > > Modified: head/sys/arm/xscale/i8134x/crb_machdep.c > > ============================================================================== > > --- head/sys/arm/xscale/i8134x/crb_machdep.c Thu May 29 16:54:15 2014 (r266849) > > +++ head/sys/arm/xscale/i8134x/crb_machdep.c Thu May 29 16:56:39 2014 (r266850) > > @@ -323,6 +323,10 @@ initarm(struct arm_boot_params *abp) > > * Prepare the list of physical memory available to the vm subsystem. > > */ > > arm_physmem_hardware_region(SDRAM_START, memsize); > > + arm_physmem_exclude_region(freemem_pt, KERNPHYSADDR - > > + freemem_pt, EXFLAG_NOALLOC); > > + arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 - > > + freemempos, EXFLAG_NOALLOC); > > arm_physmem_exclude_region(abp->abp_physaddr, > > virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC); > > arm_physmem_init_kernel_globals(); > > > > Modified: head/sys/arm/xscale/ixp425/avila_machdep.c > > ============================================================================== > > --- head/sys/arm/xscale/ixp425/avila_machdep.c Thu May 29 16:54:15 2014 (r266849) > > +++ head/sys/arm/xscale/ixp425/avila_machdep.c Thu May 29 16:56:39 2014 (r266850) > > @@ -413,6 +413,10 @@ initarm(struct arm_boot_params *abp) > > * Prepare the list of physical memory available to the vm subsystem. > > */ > > arm_physmem_hardware_region(PHYSADDR, memsize); > > + arm_physmem_exclude_region(freemem_pt, KERNPHYSADDR - > > + freemem_pt, EXFLAG_NOALLOC); > > + arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 - > > + freemempos, EXFLAG_NOALLOC); > > arm_physmem_exclude_region(abp->abp_physaddr, > > virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC); > > arm_physmem_init_kernel_globals(); > > > > Modified: head/sys/arm/xscale/pxa/pxa_machdep.c > > ============================================================================== > > --- head/sys/arm/xscale/pxa/pxa_machdep.c Thu May 29 16:54:15 2014 (r266849) > > +++ head/sys/arm/xscale/pxa/pxa_machdep.c Thu May 29 16:56:39 2014 (r266850) > > @@ -335,6 +335,10 @@ initarm(struct arm_boot_params *abp) > > if (memsize[j] > 0) > > arm_physmem_hardware_region(memstart[j], memsize[j]); > > } > > + arm_physmem_exclude_region(freemem_pt, KERNPHYSADDR - > > + freemem_pt, EXFLAG_NOALLOC); > > + arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 - > > + freemempos, EXFLAG_NOALLOC); > > arm_physmem_exclude_region(abp->abp_physaddr, > > virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC); > > arm_physmem_init_kernel_globals(); > >