Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm C style; make a sentinel pointer have an exclusive v...
details: https://anonhg.NetBSD.org/src/rev/1aa8ce12a9cc
branches: trunk
changeset: 758625:1aa8ce12a9cc
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Thu Nov 11 15:59:27 2010 +0000
description:
C style; make a sentinel pointer have an exclusive value; no
functional changes.
diffstat:
sys/uvm/uvm_page.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 572491bd8887 -r 1aa8ce12a9cc sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Thu Nov 11 15:58:41 2010 +0000
+++ b/sys/uvm/uvm_page.c Thu Nov 11 15:59:27 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.160 2010/11/11 15:51:05 uebayasi Exp $ */
+/* $NetBSD: uvm_page.c,v 1.161 2010/11/11 15:59:27 uebayasi Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.160 2010/11/11 15:51:05 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.161 2010/11/11 15:59:27 uebayasi Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@@ -467,7 +467,7 @@
seg->pgs = pagearray;
pagearray += n;
pagecount -= n;
- seg->lastpg = seg->pgs + (n - 1);
+ seg->lastpg = seg->pgs + n;
/* init and free vm_pages (we've already zeroed them) */
paddr = ctob(seg->start);
@@ -861,7 +861,7 @@
ps->pgs = NULL;
} else {
ps->pgs = pgs;
- ps->lastpg = pgs + npages - 1;
+ ps->lastpg = pgs + npages;
}
ps->free_list = free_list;
vm_nphysmem++;
@@ -1987,7 +1987,7 @@
#endif
"\n", "PAGE", "FLAG", "PQ", "UOBJECT", "UANON");
for (i = 0; i < vm_nphysmem; i++) {
- for (pg = VM_PHYSMEM_PTR(i)->pgs; pg <= VM_PHYSMEM_PTR(i)->lastpg; pg++) {
+ for (pg = VM_PHYSMEM_PTR(i)->pgs; pg < VM_PHYSMEM_PTR(i)->lastpg; pg++) {
(*pr)("%18p %04x %04x %18p %18p",
pg, pg->flags, pg->pqflags, pg->uobject,
pg->uanon);
Home |
Main Index |
Thread Index |
Old Index