Module Name:    src
Committed By:   matt
Date:           Wed Jan  6 04:25:46 UTC 2010

Modified Files:
        src/sys/arch/mips/mips [matt-nb5-mips64]: mips_machdep.c

Log Message:
Fix a thinko (last -> start + size)


To generate a diff of this commit:
cvs rdiff -u -r1.205.4.1.2.1.2.19 -r1.205.4.1.2.1.2.20 \
    src/sys/arch/mips/mips/mips_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/mips/mips_machdep.c
diff -u src/sys/arch/mips/mips/mips_machdep.c:1.205.4.1.2.1.2.19 src/sys/arch/mips/mips/mips_machdep.c:1.205.4.1.2.1.2.20
--- src/sys/arch/mips/mips/mips_machdep.c:1.205.4.1.2.1.2.19	Thu Dec 31 00:54:09 2009
+++ src/sys/arch/mips/mips/mips_machdep.c	Wed Jan  6 04:25:46 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_machdep.c,v 1.205.4.1.2.1.2.19 2009/12/31 00:54:09 matt Exp $	*/
+/*	$NetBSD: mips_machdep.c,v 1.205.4.1.2.1.2.20 2010/01/06 04:25:46 matt Exp $	*/
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -112,7 +112,7 @@
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.205.4.1.2.1.2.19 2009/12/31 00:54:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.205.4.1.2.1.2.20 2010/01/06 04:25:46 matt Exp $");
 
 #include "opt_cputype.h"
 #include "opt_compat_netbsd32.h"
@@ -1672,11 +1672,11 @@
 	 */
 	for (size_t i = 0; i < nseg; i++) {
 #ifdef VM_FREELIST_FIRST4G
-		if (segs[i].last > FOURGIG)
+		if (round_page(segs[i].start + segs[i].size) > FOURGIG)
 			need4g = true;
 #endif
 #ifdef VM_FREELIST_FIRST512M
-		if (segs[i].last > HALFGIG) {
+		if (round_page(segs[i].start + segs[i].size) > HALFGIG) {
 			need512m = true;
 			mips_poolpage_vmfreelist = VM_FREELIST_FIRST512M;
 		}

Reply via email to