Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Apr 2010 23:12:03 +0000 (UTC)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r206169 - user/jmallett/octeon/sys/mips/include
Message-ID:  <201004042312.o34NC32C051652@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



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