Module Name: src Committed By: yamt Date: Mon Oct 31 12:42:36 UTC 2011
Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: dumpsys_seg: don't overwrite the previous mapping To generate a diff of this commit: cvs rdiff -u -r1.167 -r1.168 src/sys/arch/amd64/amd64/machdep.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/amd64/amd64/machdep.c diff -u src/sys/arch/amd64/amd64/machdep.c:1.167 src/sys/arch/amd64/amd64/machdep.c:1.168 --- src/sys/arch/amd64/amd64/machdep.c:1.167 Wed Aug 31 18:52:37 2011 +++ src/sys/arch/amd64/amd64/machdep.c Mon Oct 31 12:42:36 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.167 2011/08/31 18:52:37 christos Exp $ */ +/* $NetBSD: machdep.c,v 1.168 2011/10/31 12:42:36 yamt Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011 @@ -111,7 +111,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.167 2011/08/31 18:52:37 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.168 2011/10/31 12:42:36 yamt Exp $"); /* #define XENDEBUG_LOW */ @@ -1182,6 +1182,7 @@ dumpsys_seg(paddr_t maddr, paddr_t bytes pmap_update(pmap_kernel()); error = (*dump)(dumpdev, blkno, (void *)dumpspace, n); + pmap_kremove(dumpspace, n * PAGE_SIZE); if (error) return error; maddr += n;