Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 Fix off by one.



details:   https://anonhg.NetBSD.org/src/rev/c4c36fe8c493
branches:  trunk
changeset: 351179:c4c36fe8c493
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Feb 05 06:13:53 2017 +0000

description:
Fix off by one.

Fixes PR port-amd64/51944: sparse core dumps do not work

diffstat:

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

diffs (27 lines):

diff -r fafbecbca3ff -r c4c36fe8c493 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Sun Feb 05 06:12:33 2017 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Sun Feb 05 06:13:53 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.247 2017/02/05 06:12:33 maya Exp $       */
+/*     $NetBSD: machdep.c,v 1.248 2017/02/05 06:13:53 maya Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.247 2017/02/05 06:12:33 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.248 2017/02/05 06:13:53 maya Exp $");
 
 /* #define XENDEBUG_LOW  */
 
@@ -811,7 +811,7 @@
                 * uvm_page_physload()ed
                 */
                for (pfn = uvm_physseg_get_start(upm);
-                    pfn <= uvm_physseg_get_end(upm);
+                    pfn < uvm_physseg_get_end(upm);
                     pfn++) {
                        pg = PHYS_TO_VM_PAGE(ptoa(pfn));
 



Home | Main Index | Thread Index | Old Index