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 lookup work when VM_PHYSSEG_M...
details: https://anonhg.NetBSD.org/src/rev/4c257442b243
branches: uebayasi-xip
changeset: 751791:4c257442b243
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Fri Aug 27 09:40:52 2010 +0000
description:
Make vm_physseg lookup work when VM_PHYSSEG_MAX == 1.
diffstat:
sys/uvm/uvm_page.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 3bb7e8504486 -r 4c257442b243 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Thu Aug 26 09:43:45 2010 +0000
+++ b/sys/uvm/uvm_page.c Fri Aug 27 09:40:52 2010 +0000
@@ -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);
}
Home |
Main Index |
Thread Index |
Old Index