Source-Changes-HG archive

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

[src/uebayasi-xip]: src/sys/uvm Fix build with DIAGNOSTIC.



details:   https://anonhg.NetBSD.org/src/rev/067571c625d6
branches:  uebayasi-xip
changeset: 751727:067571c625d6
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Wed Jun 09 15:29:58 2010 +0000

description:
Fix build with DIAGNOSTIC.

diffstat:

 sys/uvm/uvm_fault.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 0d8b9dffbcfd -r 067571c625d6 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c       Tue Jun 08 03:30:00 2010 +0000
+++ b/sys/uvm/uvm_fault.c       Wed Jun 09 15:29:58 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_fault.c,v 1.166.2.7 2010/05/31 13:26:38 uebayasi Exp $     */
+/*     $NetBSD: uvm_fault.c,v 1.166.2.8 2010/06/09 15:29:58 uebayasi Exp $     */
 
 /*
  *
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.166.2.7 2010/05/31 13:26:38 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.166.2.8 2010/06/09 15:29:58 uebayasi Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_direct_page.h"
@@ -1719,7 +1719,7 @@
                if (curpg == NULL || curpg == PGO_DONTCARE) {
                        continue;
                }
-               KASSERT(uvm_pageisdirect_p(uobjpage) || curpg->uobject == uobj);
+               KASSERT(uvm_pageisdirect_p(curpg) || curpg->uobject == uobj);
 
                /*
                 * if center page is resident and not PG_BUSY|PG_RELEASED
@@ -1732,7 +1732,7 @@
                            "(0x%x) with locked get",
                            curpg, 0,0,0);
                } else {
-                       bool readonly = uvm_pageisdirect_p(uobjpage)
+                       bool readonly = uvm_pageisdirect_p(curpg)
                            || (curpg->flags & PG_RDONLY)
                            || (curpg->loan_count > 0)
                            || UVM_OBJ_NEEDS_WRITEFAULT(curpg->uobject);



Home | Main Index | Thread Index | Old Index