Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha In pmap_ptpage_steal(), don't traverse ...



details:   https://anonhg.NetBSD.org/src/rev/2557bc2187f0
branches:  trunk
changeset: 497091:2557bc2187f0
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Sep 19 01:02:37 2000 +0000

description:
In pmap_ptpage_steal(), don't traverse into the kernel portion
of the address space.

diffstat:

 sys/arch/alpha/alpha/pmap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 57a458b0b8cd -r 2557bc2187f0 sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c       Tue Sep 19 00:00:18 2000 +0000
+++ b/sys/arch/alpha/alpha/pmap.c       Tue Sep 19 01:02:37 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.146 2000/09/14 17:06:52 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.147 2000/09/19 01:02:37 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -156,7 +156,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.146 2000/09/14 17:06:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.147 2000/09/19 01:02:37 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3632,7 +3632,8 @@
                 * Have a candidate pmap.  Loop through the PT pages looking
                 * for one we can steal.
                 */
-               for (l1idx = 0; l1idx < NPTEPG; l1idx++) {
+               for (l1idx = 0;
+                    l1idx < l1pte_index(VM_MAXUSER_ADDRESS); l1idx++) {
                        if (pmap_pte_v(&spmap->pm_lev1map[l1idx]) == 0)
                                continue;
 



Home | Main Index | Thread Index | Old Index