1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00

We no longer need to disable interrupts in MD trap machinery

when we're about to call kdb_trap() because the latter MI
function can disable interrupts by itself now.

Pointed out by:	bde
X-MFC remark:	depends on kern/subr_kdb.c#1.18
Sponsored by:	RiNet (Cronyx Plus LLC)
This commit is contained in:
Yaroslav Tykhiy 2006-06-20 12:44:21 +00:00
parent fb11be62a2
commit 15a901e263
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159790
2 changed files with 2 additions and 12 deletions

View File

@ -681,15 +681,9 @@ trap_fatal(frame, eva)
}
#ifdef KDB
if (debugger_on_panic || kdb_active) {
register_t rflags;
rflags = intr_disable();
if (kdb_trap(type, 0, frame)) {
intr_restore(rflags);
if (debugger_on_panic || kdb_active)
if (kdb_trap(type, 0, frame))
return;
}
intr_restore(rflags);
}
#endif
printf("trap number = %d\n", type);
if (type <= MAX_TRAP_MSG)

View File

@ -856,16 +856,12 @@ trap_fatal(frame, eva)
#ifdef KDB
if (debugger_on_panic || kdb_active) {
register_t eflags = intr_disable();
frame->tf_err = eva; /* smuggle fault address to ddb */
if (kdb_trap(type, 0, frame)) {
frame->tf_err = code; /* restore error code */
intr_restore(eflags);
return;
}
frame->tf_err = code; /* restore error code */
intr_restore(eflags);
}
#endif
printf("trap number = %d\n", type);