Re-enable interrupts in tlb_exception too.
This commit is contained in:
parent
86d3d1e448
commit
a4d20321d9
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: exception.c,v 1.36 2007/03/14 05:03:52 uwe Exp $ */
|
||||
/* $NetBSD: exception.c,v 1.37 2007/03/30 00:12:54 uwe Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
|
||||
@ -79,7 +79,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.36 2007/03/14 05:03:52 uwe Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.37 2007/03/30 00:12:54 uwe Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -146,13 +146,11 @@ general_exception(struct lwp *l, struct trapframe *tf, uint32_t va)
|
||||
{
|
||||
int expevt = tf->tf_expevt;
|
||||
bool usermode = !KERNELMODE(tf->tf_ssr);
|
||||
int ipl;
|
||||
ksiginfo_t ksi;
|
||||
|
||||
uvmexp.traps++;
|
||||
|
||||
ipl = tf->tf_ssr & PSL_IMASK;
|
||||
splx(ipl);
|
||||
splx(tf->tf_ssr & PSL_IMASK);
|
||||
|
||||
if (l == NULL)
|
||||
goto do_panic;
|
||||
@ -277,6 +275,7 @@ tlb_exception(struct lwp *l, struct trapframe *tf, uint32_t va)
|
||||
} \
|
||||
} while(/*CONSTCOND*/0)
|
||||
|
||||
splx(tf->tf_ssr & PSL_IMASK);
|
||||
|
||||
usermode = !KERNELMODE(tf->tf_ssr);
|
||||
if (usermode) {
|
||||
|
Loading…
Reference in New Issue
Block a user