Module Name:    src
Committed By:   uebayasi
Date:           Fri Feb 12 13:39:26 UTC 2010

Modified Files:
        src/sys/uvm [uebayasi-xip]: uvm_object.c

Log Message:
Teach device page handling.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.2.1 src/sys/uvm/uvm_object.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_object.c
diff -u src/sys/uvm/uvm_object.c:1.7 src/sys/uvm/uvm_object.c:1.7.2.1
--- src/sys/uvm/uvm_object.c:1.7	Tue Aug 18 19:16:09 2009
+++ src/sys/uvm/uvm_object.c	Fri Feb 12 13:39:26 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_object.c,v 1.7 2009/08/18 19:16:09 thorpej Exp $	*/
+/*	$NetBSD: uvm_object.c,v 1.7.2.1 2010/02/12 13:39:26 uebayasi Exp $	*/
 
 /*
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_object.c,v 1.7 2009/08/18 19:16:09 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_object.c,v 1.7.2.1 2010/02/12 13:39:26 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvmhist.h"
@@ -85,6 +85,9 @@
 		mutex_enter(&uobj->vmobjlock);
 		for (i = 0; i < npages; i++) {
 
+			if (uvm_pageisdevice_p(pgs[i]))
+				continue;
+
 			KASSERT(pgs[i] != NULL);
 			KASSERT(!(pgs[i]->flags & PG_RELEASED));
 

Reply via email to