Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 Adjust the check for what segments should...



details:   https://anonhg.NetBSD.org/src/rev/80ba660f831a
branches:  trunk
changeset: 536038:80ba660f831a
user:      erh <erh%NetBSD.org@localhost>
date:      Thu Sep 05 02:43:00 2002 +0000

description:
Adjust the check for what segments should go on the low priority free list.
If a segment starts exactly at 16M don't try to split it because that causes
the code to try to call uvm_page_physload with a zero length segment.
(kern/17199)

diffstat:

 sys/arch/i386/i386/machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r eb379df853c1 -r 80ba660f831a sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Wed Sep 04 23:51:55 2002 +0000
+++ b/sys/arch/i386/i386/machdep.c      Thu Sep 05 02:43:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.479 2002/08/25 20:21:37 thorpej Exp $    */
+/*     $NetBSD: machdep.c,v 1.480 2002/09/05 02:43:00 erh Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.479 2002/08/25 20:21:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.480 2002/09/05 02:43:00 erh Exp $");
 
 #include "opt_cputype.h"
 #include "opt_ddb.h"
@@ -2968,7 +2968,7 @@
 
                /* First hunk */
                if (seg_start != seg_end) {
-                       if (seg_start <= (16 * 1024 * 1024) &&
+                       if (seg_start < (16 * 1024 * 1024) &&
                            first16q != VM_FREELIST_DEFAULT) {
                                u_int64_t tmp;
 
@@ -3001,7 +3001,7 @@
 
                /* Second hunk */
                if (seg_start1 != seg_end1) {
-                       if (seg_start1 <= (16 * 1024 * 1024) &&
+                       if (seg_start1 < (16 * 1024 * 1024) &&
                            first16q != VM_FREELIST_DEFAULT) {
                                u_int64_t tmp;
 



Home | Main Index | Thread Index | Old Index