Module Name: src
Committed By: matt
Date: Thu Aug 13 03:21:03 UTC 2009
Modified Files:
src/sys/uvm: uvm_map.c
Log Message:
Fix KASSERT() failure reported by Geoff Wing.
To generate a diff of this commit:
cvs rdiff -u -r1.277 -r1.278 src/sys/uvm/uvm_map.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_map.c
diff -u src/sys/uvm/uvm_map.c:1.277 src/sys/uvm/uvm_map.c:1.278
--- src/sys/uvm/uvm_map.c:1.277 Mon Aug 10 16:49:30 2009
+++ src/sys/uvm/uvm_map.c Thu Aug 13 03:21:03 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.277 2009/08/10 16:49:30 matt Exp $ */
+/* $NetBSD: uvm_map.c,v 1.278 2009/08/13 03:21:03 matt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.277 2009/08/10 16:49:30 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.278 2009/08/13 03:21:03 matt Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@@ -4821,7 +4821,7 @@
KASSERT(deadentry->flags & UVM_MAP_KERNEL);
KASSERT(deadentry->flags & UVM_MAP_KMAPENT);
KASSERT(deadentry->next == NULL);
- KASSERT(deadentry == &ukh->ukh_entries[0]);
+ KASSERT(deadentry == &ukh->ukh_entries[UVM_KMAPENT_CHUNK - 1]);
/*
* unmap the page from pmap and free it.