summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-06-20 12:44:21 +0000
committeryar <yar@FreeBSD.org>2006-06-20 12:44:21 +0000
commit7e90b114e30399ce713a2dcdacb93865417eac34 (patch)
tree460eec9268c59d4fd1c7b2a6bf280ac4b7816a85 /sys/amd64
parent549bd60e434b03fc33a0be9afc073ee62622edf9 (diff)
downloadFreeBSD-src-7e90b114e30399ce713a2dcdacb93865417eac34.zip
FreeBSD-src-7e90b114e30399ce713a2dcdacb93865417eac34.tar.gz
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)
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/trap.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 9036317..d41318c 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -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)
OpenPOWER on IntegriCloud