Module Name: src Committed By: jmcneill Date: Sun Sep 4 21:04:42 UTC 2011
Modified Files: src/sys/arch/usermode/usermode: pmap.c Log Message: if pmap_page_activate fails, print the returned and expected addresses To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/arch/usermode/usermode/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/usermode/usermode/pmap.c diff -u src/sys/arch/usermode/usermode/pmap.c:1.53 src/sys/arch/usermode/usermode/pmap.c:1.54 --- src/sys/arch/usermode/usermode/pmap.c:1.53 Sat Sep 3 18:42:13 2011 +++ src/sys/arch/usermode/usermode/pmap.c Sun Sep 4 21:04:42 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.53 2011/09/03 18:42:13 jmcneill Exp $ */ +/* $NetBSD: pmap.c,v 1.54 2011/09/04 21:04:42 jmcneill Exp $ */ /*- * Copyright (c) 2011 Reinoud Zandijk <rein...@netbsd.org> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.53 2011/09/03 18:42:13 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.54 2011/09/04 21:04:42 jmcneill Exp $"); #include "opt_memsize.h" #include "opt_kmempages.h" @@ -550,7 +550,8 @@ aprint_debug("page_activate: (va %p, pa %p, ppl %d) -> %p\n", (void *) va, (void *) pa, pv->pv_mmap_ppl, (void *) addr); if (addr != (void *) va) - panic("pmap_page_activate: mmap failed"); + panic("pmap_page_activate: mmap failed (expected %p got %p): %d", + (void *)va, addr, thunk_geterrno()); } static void