Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2011 13:12:26 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r222649 - projects/pseries/powerpc/ofw
Message-ID:  <201106031312.p53DCQIC065369@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Fri Jun  3 13:12:26 2011
New Revision: 222649
URL: http://svn.freebsd.org/changeset/base/222649

Log:
  We don't need quite so many memory regions for apple_hack_mode.

Modified:
  projects/pseries/powerpc/ofw/ofw_machdep.c

Modified: projects/pseries/powerpc/ofw/ofw_machdep.c
==============================================================================
--- projects/pseries/powerpc/ofw/ofw_machdep.c	Fri Jun  3 12:02:53 2011	(r222648)
+++ projects/pseries/powerpc/ofw/ofw_machdep.c	Fri Jun  3 13:12:26 2011	(r222649)
@@ -194,7 +194,7 @@ parse_ofw_memory(phandle_t node, const c
 	 * Get memory.
 	 */
 	if ((node == -1) || (sz = OF_getprop(node, prop,
-	    OFmem, sizeof(OFmem[0]) * 4 * PHYS_AVAIL_SZ)) <= 0)
+	    OFmem, sizeof(OFmem)) <= 0)
 		panic("Physical memory map not found");
 
 	i = 0;
@@ -244,7 +244,7 @@ parse_ofw_memory(phandle_t node, const c
 	#ifdef __powerpc64__
 	if (apple_hack_mode) {
 		/* Add in regions above 4 GB to the available list */
-		struct mem_region himem[PHYS_AVAIL_SZ];
+		struct mem_region himem[16];
 		int hisz;
 
 		hisz = parse_ofw_memory(node, "reg", himem);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106031312.p53DCQIC065369>