Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Dec 2010 14:25:02 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216589 - head/sys/powerpc/include
Message-ID:  <201012201425.oBKEP2GT057872@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Mon Dec 20 14:25:01 2010
New Revision: 216589
URL: http://svn.freebsd.org/changeset/base/216589

Log:
  Memory can be laid out with large gaps on 64-bit PowerPC, so switch to
  VM_PHYSSEG_SPARSE.

Modified:
  head/sys/powerpc/include/vmparam.h

Modified: head/sys/powerpc/include/vmparam.h
==============================================================================
--- head/sys/powerpc/include/vmparam.h	Mon Dec 20 09:36:54 2010	(r216588)
+++ head/sys/powerpc/include/vmparam.h	Mon Dec 20 14:25:01 2010	(r216589)
@@ -140,9 +140,14 @@ struct pmap_physseg {
 #define	VM_PHYSSEG_MAX		16	/* 1? */
 
 /*
- * The physical address space is densely populated.
+ * The physical address space is densely populated on 32-bit systems,
+ * but may not be on 64-bit ones.
  */
+#ifdef __powerpc64__
+#define	VM_PHYSSEG_SPARSE
+#else
 #define	VM_PHYSSEG_DENSE
+#endif
 
 /*
  * Create three free page pools: VM_FREEPOOL_DEFAULT is the default pool



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