Module Name: src
Committed By: thorpej
Date: Mon Aug 17 19:33:08 UTC 2009
Modified Files:
src/sys/arch/x86/x86: pmap.c
Log Message:
pmap_page_remove(), pmap_test_attrs(), pmap_clear_attrs(): We're passed in
a vm_page, so there is little point in the DIAGNOSTIC test to see that we
have been passed a managed page.
To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/x86/x86/pmap.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/arch/x86/x86/pmap.c
diff -u src/sys/arch/x86/x86/pmap.c:1.90 src/sys/arch/x86/x86/pmap.c:1.91
--- src/sys/arch/x86/x86/pmap.c:1.90 Wed Jul 29 12:02:06 2009
+++ src/sys/arch/x86/x86/pmap.c Mon Aug 17 19:33:07 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.90 2009/07/29 12:02:06 cegger Exp $ */
+/* $NetBSD: pmap.c,v 1.91 2009/08/17 19:33:07 thorpej Exp $ */
/*
* Copyright (c) 2007 Manuel Bouyer.
@@ -154,7 +154,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.90 2009/07/29 12:02:06 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.91 2009/08/17 19:33:07 thorpej Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -3682,14 +3682,6 @@
lwp_t *l;
int count;
-#ifdef DIAGNOSTIC
- int bank, off;
-
- bank = vm_physseg_find(atop(VM_PAGE_TO_PHYS(pg)), &off);
- if (bank == -1)
- panic("pmap_page_remove: unmanaged page?");
-#endif
-
l = curlwp;
pp = VM_PAGE_TO_PP(pg);
expect = pmap_pa2pte(VM_PAGE_TO_PHYS(pg)) | PG_V;
@@ -3787,14 +3779,6 @@
pt_entry_t expect;
u_int result;
-#if DIAGNOSTIC
- int bank, off;
-
- bank = vm_physseg_find(atop(VM_PAGE_TO_PHYS(pg)), &off);
- if (bank == -1)
- panic("pmap_test_attrs: unmanaged page?");
-#endif
-
pp = VM_PAGE_TO_PP(pg);
if ((pp->pp_attrs & testbits) != 0) {
return true;
@@ -3838,13 +3822,6 @@
u_int result;
pt_entry_t expect;
int count;
-#ifdef DIAGNOSTIC
- int bank, off;
-
- bank = vm_physseg_find(atop(VM_PAGE_TO_PHYS(pg)), &off);
- if (bank == -1)
- panic("pmap_change_attrs: unmanaged page?");
-#endif
pp = VM_PAGE_TO_PP(pg);
expect = pmap_pa2pte(VM_PAGE_TO_PHYS(pg)) | PG_V;