svn commit: r206169 - user/jmallett/octeon/sys/mips/include
Juli Mallett
jmallett at FreeBSD.org
Sun Apr 4 23:12:03 UTC 2010
Author: jmallett
Date: Sun Apr 4 23:12:03 2010
New Revision: 206169
URL: http://svn.freebsd.org/changeset/base/206169
Log:
o) If we double the number of PTEs in a page table page, we have to double the
segment size. If we double the amount of memory each PTE covers we need to
double the segment size yet again. Increase the segment shift by 2 since we
doubled the page size (and further, define it in terms of shift first and
foremost.)
Modified:
user/jmallett/octeon/sys/mips/include/vmparam.h
Modified: user/jmallett/octeon/sys/mips/include/vmparam.h
==============================================================================
--- user/jmallett/octeon/sys/mips/include/vmparam.h Sun Apr 4 16:48:33 2010 (r206168)
+++ user/jmallett/octeon/sys/mips/include/vmparam.h Sun Apr 4 23:12:03 2010 (r206169)
@@ -191,8 +191,8 @@
*/
#define VM_NFREEORDER 9
-#define NBSEG 0x400000 /* bytes/segment */
+#define SEGSHIFT 24 /* LOG2(NBSEG) */
+#define NBSEG (1 << SEGSHIFT) /* bytes/segment */
#define SEGOFSET (NBSEG-1) /* byte offset into segment */
-#define SEGSHIFT 22 /* LOG2(NBSEG) */
#endif /* !_MACHINE_VMPARAM_H_ */
More information about the svn-src-user
mailing list