Date: Thu, 29 May 2014 10:14:53 -0700 From: Adrian Chadd <adrian@freebsd.org> To: Olivier Houchard <cognet@freebsd.org>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: svn commit: r266850 - in head/sys/arm/xscale: i80321 i8134x ixp425 pxa Message-ID: <CAJ-Vmon2sup%2Bvd%2Bpi2fdjv5DaxS%2BxtG1FxmfSV%2B%2BrK1KydXRvw@mail.gmail.com> In-Reply-To: <201405291656.s4TGudoD002868@svn.freebsd.org> References: <201405291656.s4TGudoD002868@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Have you tested this on xscale hardware? -a On 29 May 2014 09:56, Olivier Houchard <cognet@freebsd.org> 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(); >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmon2sup%2Bvd%2Bpi2fdjv5DaxS%2BxtG1FxmfSV%2B%2BrK1KydXRvw>