Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/usermode if pmap_page_activate fails, prin...
details: https://anonhg.NetBSD.org/src/rev/71a76897b673
branches: trunk
changeset: 769254:71a76897b673
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Sep 04 21:04:42 2011 +0000
description:
if pmap_page_activate fails, print the returned and expected addresses
diffstat:
sys/arch/usermode/usermode/pmap.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 603723421fca -r 71a76897b673 sys/arch/usermode/usermode/pmap.c
--- a/sys/arch/usermode/usermode/pmap.c Sun Sep 04 21:01:39 2011 +0000
+++ b/sys/arch/usermode/usermode/pmap.c Sun Sep 04 21:04:42 2011 +0000
@@ -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 <reinoud%NetBSD.org@localhost>
@@ -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
Home |
Main Index |
Thread Index |
Old Index