From owner-svn-src-user@FreeBSD.ORG Sun Apr 4 23:12:03 2010 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9320106564A; Sun, 4 Apr 2010 23:12:03 +0000 (UTC) (envelope-from jmallett@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 988278FC0A; Sun, 4 Apr 2010 23:12:03 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o34NC3hd051653; Sun, 4 Apr 2010 23:12:03 GMT (envelope-from jmallett@svn.freebsd.org) Received: (from jmallett@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o34NC32C051652; Sun, 4 Apr 2010 23:12:03 GMT (envelope-from jmallett@svn.freebsd.org) Message-Id: <201004042312.o34NC32C051652@svn.freebsd.org> From: Juli Mallett Date: Sun, 4 Apr 2010 23:12:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r206169 - user/jmallett/octeon/sys/mips/include X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Apr 2010 23:12:03 -0000 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_ */