Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Take the last area into account, there is a...



details:   https://anonhg.NetBSD.org/src/rev/e219e4f813a9
branches:  trunk
changeset: 365322:e219e4f813a9
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Aug 12 10:45:27 2018 +0000

description:
Take the last area into account, there is a hole before it.

diffstat:

 sys/arch/x86/x86/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f2b5812c808f -r e219e4f813a9 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Sun Aug 12 10:43:04 2018 +0000
+++ b/sys/arch/x86/x86/pmap.c   Sun Aug 12 10:45:27 2018 +0000
@@ -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 @@
                 */
                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 &&



Home | Main Index | Thread Index | Old Index