svn commit: r292525 - in head/sys/arm/xscale: i80321 i8134x ixp425 pxa

Ian Lepore ian at FreeBSD.org
Mon Dec 21 01:14:56 UTC 2015


Author: ian
Date: Mon Dec 21 01:14:54 2015
New Revision: 292525
URL: https://svnweb.freebsd.org/changeset/base/292525

Log:
  Replace some references to KERNPHYSADDR with the equivelent value passed in
  from the bootloader.

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	Sun Dec 20 23:38:14 2015	(r292524)
+++ head/sys/arm/xscale/i80321/ep80219_machdep.c	Mon Dec 21 01:14:54 2015	(r292525)
@@ -343,9 +343,9 @@ 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 -
+	arm_physmem_exclude_region(freemem_pt, abp->abp_physaddr -
 	    freemem_pt, EXFLAG_NOALLOC);
-	arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 -
+	arm_physmem_exclude_region(freemempos, abp->abp_physaddr - 0x100000 -
 	    freemempos, EXFLAG_NOALLOC);
 	arm_physmem_exclude_region(abp->abp_physaddr, 
 	    virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC);

Modified: head/sys/arm/xscale/i80321/iq31244_machdep.c
==============================================================================
--- head/sys/arm/xscale/i80321/iq31244_machdep.c	Sun Dec 20 23:38:14 2015	(r292524)
+++ head/sys/arm/xscale/i80321/iq31244_machdep.c	Mon Dec 21 01:14:54 2015	(r292525)
@@ -345,9 +345,9 @@ 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 -
+	arm_physmem_exclude_region(freemem_pt, abp->abp_physaddr -
 	    freemem_pt, EXFLAG_NOALLOC);
-	arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 -
+	arm_physmem_exclude_region(freemempos, abp->abp_physaddr - 0x100000 -
 	    freemempos, EXFLAG_NOALLOC);			
 	arm_physmem_exclude_region(abp->abp_physaddr, 
 	    virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC);

Modified: head/sys/arm/xscale/i8134x/crb_machdep.c
==============================================================================
--- head/sys/arm/xscale/i8134x/crb_machdep.c	Sun Dec 20 23:38:14 2015	(r292524)
+++ head/sys/arm/xscale/i8134x/crb_machdep.c	Mon Dec 21 01:14:54 2015	(r292525)
@@ -325,9 +325,9 @@ 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 -
+	arm_physmem_exclude_region(freemem_pt, abp->abp_physaddr -
 	    freemem_pt, EXFLAG_NOALLOC);
-	arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 -
+	arm_physmem_exclude_region(freemempos, abp->abp_physaddr - 0x100000 -
 	    freemempos, EXFLAG_NOALLOC);
 	arm_physmem_exclude_region(abp->abp_physaddr, 
 	    virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC);

Modified: head/sys/arm/xscale/ixp425/avila_machdep.c
==============================================================================
--- head/sys/arm/xscale/ixp425/avila_machdep.c	Sun Dec 20 23:38:14 2015	(r292524)
+++ head/sys/arm/xscale/ixp425/avila_machdep.c	Mon Dec 21 01:14:54 2015	(r292525)
@@ -415,9 +415,9 @@ 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 -
+	arm_physmem_exclude_region(freemem_pt, abp->abp_physaddr -
 	    freemem_pt, EXFLAG_NOALLOC);
-	arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 -
+	arm_physmem_exclude_region(freemempos, abp->abp_physaddr - 0x100000 -
 	    freemempos, EXFLAG_NOALLOC);
 	arm_physmem_exclude_region(abp->abp_physaddr, 
 	    virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC);

Modified: head/sys/arm/xscale/pxa/pxa_machdep.c
==============================================================================
--- head/sys/arm/xscale/pxa/pxa_machdep.c	Sun Dec 20 23:38:14 2015	(r292524)
+++ head/sys/arm/xscale/pxa/pxa_machdep.c	Mon Dec 21 01:14:54 2015	(r292525)
@@ -336,9 +336,9 @@ 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 -
+	arm_physmem_exclude_region(freemem_pt, abp->abp_physaddr -
 	    freemem_pt, EXFLAG_NOALLOC);
-	arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 -
+	arm_physmem_exclude_region(freemempos, abp->abp_physaddr - 0x100000 -
 	    freemempos, EXFLAG_NOALLOC);
 	arm_physmem_exclude_region(abp->abp_physaddr, 
 	    virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC);


More information about the svn-src-head mailing list