Source-Changes-HG archive

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

[src/uebayasi-xip]: src/sys/uvm Make vm_physseg::lastpg exclusive end.



details:   https://anonhg.NetBSD.org/src/rev/494c35d3a536
branches:  uebayasi-xip
changeset: 751541:494c35d3a536
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Mon Feb 08 05:41:43 2010 +0000

description:
Make vm_physseg::lastpg exclusive end.

diffstat:

 sys/uvm/uvm_page.c |  10 +++++-----
 sys/uvm/uvm_page.h |   4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 6dcc578e17d3 -r 494c35d3a536 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Mon Feb 08 05:01:09 2010 +0000
+++ b/sys/uvm/uvm_page.c        Mon Feb 08 05:41:43 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.153 2010/01/27 03:56:33 uebayasi Exp $  */
+/*     $NetBSD: uvm_page.c,v 1.153.2.1 2010/02/08 05:41:43 uebayasi Exp $      */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.153 2010/01/27 03:56:33 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.153.2.1 2010/02/08 05:41:43 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvmhist.h"
@@ -436,7 +436,7 @@
                vm_physmem[lcv].pgs = pagearray;
                pagearray += n;
                pagecount -= n;
-               vm_physmem[lcv].lastpg = vm_physmem[lcv].pgs + (n - 1);
+               vm_physmem[lcv].end = vm_physmem[lcv].pgs + n;
 
                /* init and free vm_pages (we've already zeroed them) */
                paddr = ptoa(vm_physmem[lcv].start);
@@ -855,7 +855,7 @@
                ps->pgs = NULL;
        } else {
                ps->pgs = pgs;
-               ps->lastpg = pgs + npages - 1;
+               ps->endpg = pgs + npages;
        }
        ps->free_list = free_list;
        vm_nphysseg++;
@@ -1980,7 +1980,7 @@
 #endif
            "\n", "PAGE", "FLAG", "PQ", "UOBJECT", "UANON");
        for (i = 0; i < vm_nphysseg; i++) {
-               for (pg = vm_physmem[i].pgs; pg <= vm_physmem[i].lastpg; pg++) {
+               for (pg = vm_physmem[i].pgs; pg < vm_physmem[i].lastpg; pg++) {
                        (*pr)("%18p %04x %04x %18p %18p",
                            pg, pg->flags, pg->pqflags, pg->uobject,
                            pg->uanon);
diff -r 6dcc578e17d3 -r 494c35d3a536 sys/uvm/uvm_page.h
--- a/sys/uvm/uvm_page.h        Mon Feb 08 05:01:09 2010 +0000
+++ b/sys/uvm/uvm_page.h        Mon Feb 08 05:41:43 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.h,v 1.59 2010/02/06 12:10:59 uebayasi Exp $   */
+/*     $NetBSD: uvm_page.h,v 1.59.2.1 2010/02/08 05:41:43 uebayasi Exp $       */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -236,7 +236,7 @@
        paddr_t avail_end;              /* (PF# of last free page in segment) +1  */
        int     free_list;              /* which free list they belong on */
        struct  vm_page *pgs;           /* vm_page structures (from start) */
-       struct  vm_page *lastpg;        /* vm_page structure for end */
+       struct  vm_page *endpg;         /* vm_page structure for end */
 #ifdef __HAVE_PMAP_PHYSSEG
        struct  pmap_physseg pmseg;     /* pmap specific (MD) data */
 #endif



Home | Main Index | Thread Index | Old Index