Module Name: src Committed By: maxv Date: Sun Aug 12 10:45:27 UTC 2018
Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Take the last area into account, there is a hole before it. To generate a diff of this commit: cvs rdiff -u -r1.296 -r1.297 src/sys/arch/x86/x86/pmap.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/x86/x86/pmap.c diff -u src/sys/arch/x86/x86/pmap.c:1.296 src/sys/arch/x86/x86/pmap.c:1.297 --- src/sys/arch/x86/x86/pmap.c:1.296 Sun Aug 12 08:17:50 2018 +++ src/sys/arch/x86/x86/pmap.c Sun Aug 12 10:45:27 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.296 2018/08/12 08:17:50 maxv Exp $ */ +/* $NetBSD: pmap.c,v 1.297 2018/08/12 10:45:27 maxv Exp $ */ /* * Copyright (c) 2008, 2010, 2016, 2017 The NetBSD Foundation, Inc. @@ -157,7 +157,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.296 2018/08/12 08:17:50 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.297 2018/08/12 10:45:27 maxv Exp $"); #include "opt_user_ldt.h" #include "opt_lockdebug.h" @@ -1425,7 +1425,7 @@ slotspace_rand(int type, size_t sz, size */ size_t minsslot = 512; size_t minnslot = 0; - for (i = 0; i < SLSPACE_NAREAS-1; i++) { + for (i = 0; i < SLSPACE_NAREAS; i++) { if (!slotspace.area[i].active) continue; if (slotspace.area[i].sslot >= curslot &&