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 Check for NULL pcb!
details: https://anonhg.NetBSD.org/src/rev/59c1a67af7e0
branches: trunk
changeset: 769288:59c1a67af7e0
user: reinoud <reinoud%NetBSD.org@localhost>
date: Mon Sep 05 18:50:34 2011 +0000
description:
Check for NULL pcb!
diffstat:
sys/arch/usermode/usermode/trap.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r e2b8df43350f -r 59c1a67af7e0 sys/arch/usermode/usermode/trap.c
--- a/sys/arch/usermode/usermode/trap.c Mon Sep 05 18:31:04 2011 +0000
+++ b/sys/arch/usermode/usermode/trap.c Mon Sep 05 18:50:34 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.26 2011/09/05 12:04:40 reinoud Exp $ */
+/* $NetBSD: trap.c,v 1.27 2011/09/05 18:50:34 reinoud Exp $ */
/*-
* Copyright (c) 2011 Reinoud Zandijk <reinoud%netbsd.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.26 2011/09/05 12:04:40 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.27 2011/09/05 18:50:34 reinoud Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -174,6 +174,11 @@
if (!pmap_fault(vm_map->pmap, va, &atype)) {
aprint_debug("pmap fault couldn't handle it! : "
"derived atype %d\n", atype);
+
+ /* extra debug for now */
+ if (pcb == 0)
+ panic("NULL pcb!\n");
+
pcb->pcb_onfault = NULL;
rv = uvm_fault(vm_map, va, atype);
pcb->pcb_onfault = onfault;
Home |
Main Index |
Thread Index |
Old Index