Module Name: src Committed By: uebayasi Date: Tue Nov 2 12:21:07 UTC 2010
Modified Files: src/sys/arch/sparc64/sparc64: pmap.c Log Message: Fix DIAGNOSTIC build. Pointed out by Juergen Hannken-Illjes. To generate a diff of this commit: cvs rdiff -u -r1.266 -r1.267 src/sys/arch/sparc64/sparc64/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/sparc64/sparc64/pmap.c diff -u src/sys/arch/sparc64/sparc64/pmap.c:1.266 src/sys/arch/sparc64/sparc64/pmap.c:1.267 --- src/sys/arch/sparc64/sparc64/pmap.c:1.266 Sat Oct 30 18:30:55 2010 +++ src/sys/arch/sparc64/sparc64/pmap.c Tue Nov 2 12:21:07 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.266 2010/10/30 18:30:55 uebayasi Exp $ */ +/* $NetBSD: pmap.c,v 1.267 2010/11/02 12:21:07 uebayasi Exp $ */ /* * * Copyright (C) 1996-1999 Eduardo Horvath. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.266 2010/10/30 18:30:55 uebayasi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.267 2010/11/02 12:21:07 uebayasi Exp $"); #undef NO_VCACHE /* Don't forget the locked TLB in dostart */ #define HWREF @@ -1446,6 +1446,8 @@ /* we could be a little smarter and leave pages zeroed */ for (pg = TAILQ_FIRST(&pm->pm_obj.memq); pg != NULL; pg = nextpg) { + struct vm_page_md *md = VM_PAGE_TO_MD(pg); + KASSERT((pg->flags & PG_MARKER) == 0); nextpg = TAILQ_NEXT(pg, listq.queue); TAILQ_REMOVE(&pm->pm_obj.memq, pg, listq.queue);