Module Name: src
Committed By: uebayasi
Date: Fri Aug 27 09:40:52 UTC 2010
Modified Files:
src/sys/uvm [uebayasi-xip]: uvm_page.c
Log Message:
Make vm_physseg lookup work when VM_PHYSSEG_MAX == 1.
To generate a diff of this commit:
cvs rdiff -u -r1.153.2.54 -r1.153.2.55 src/sys/uvm/uvm_page.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_page.c
diff -u src/sys/uvm/uvm_page.c:1.153.2.54 src/sys/uvm/uvm_page.c:1.153.2.55
--- src/sys/uvm/uvm_page.c:1.153.2.54 Wed Aug 25 14:23:16 2010
+++ src/sys/uvm/uvm_page.c Fri Aug 27 09:40:52 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.153.2.54 2010/08/25 14:23:16 uebayasi Exp $ */
+/* $NetBSD: uvm_page.c,v 1.153.2.55 2010/08/27 09:40:52 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.153.2.54 2010/08/25 14:23:16 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.153.2.55 2010/08/27 09:40:52 uebayasi Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@@ -1074,6 +1074,8 @@
{
/* 'contig' case */
+ if (nsegs == 0)
+ return(-1);
if (vm_physseg_within_p(segs[0], op, pframe, pg, offp)) {
return(0);
}