Change the DUBUG check on interrupt depth in do_fault() into a KASSERT, since

we're never allowed to call uvm_fault from an interrupt.
This commit is contained in:
bjh21 2001-06-26 19:37:18 +00:00
parent afa0abb87f
commit e0e53bb8fe
1 changed files with 5 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: except.c,v 1.35 2001/06/26 19:22:02 bjh21 Exp $ */
/* $NetBSD: except.c,v 1.36 2001/06/26 19:37:18 bjh21 Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 Ben Harris
* All rights reserved.
@ -32,7 +32,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: except.c,v 1.35 2001/06/26 19:22:02 bjh21 Exp $");
__KERNEL_RCSID(0, "$NetBSD: except.c,v 1.36 2001/06/26 19:37:18 bjh21 Exp $");
#include "opt_cputypes.h"
#include "opt_ddb.h"
@ -398,17 +398,9 @@ do_fault(struct trapframe *tf, struct proc *p,
if (pmap_fault(map->pmap, va, atype))
return;
#ifdef DEBUG
if (current_intr_depth > 0) {
printf("fault in interrupt context\n");
printregs(tf);
printf("pc -> ");
disassemble(tf->tf_r15 & R15_PC);
#ifdef DDB
Debugger();
#endif
}
#endif
KASSERT(current_intr_depth == 0);
for (;;) {
error = uvm_fault(map, va, 0, atype);
if (error != ENOMEM)