svn commit: r222649 - projects/pseries/powerpc/ofw
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Fri Jun 3 13:12:27 UTC 2011
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);
More information about the svn-src-projects
mailing list