aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_kdb.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2004-09-17 22:27:23 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2004-09-17 22:27:23 +0000
commitddf41225924d52fe1ae4d59041d00339c1e12d29 (patch)
tree9bd19187808584ba8d3c7c960925d529c34fb75b /sys/kern/subr_kdb.c
parent08d79b63f6db0e81f41843a348a54b8fc7580013 (diff)
downloadsrc-ddf41225924d52fe1ae4d59041d00339c1e12d29.tar.gz
src-ddf41225924d52fe1ae4d59041d00339c1e12d29.zip
Move makectx() after kdb_cpu_trap(), so the PCB will have possible MD
corrections made to the trapframe. This is more logical.
Notes
Notes: svn path=/head/; revision=135407
Diffstat (limited to 'sys/kern/subr_kdb.c')
-rw-r--r--sys/kern/subr_kdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_kdb.c b/sys/kern/subr_kdb.c
index 08675d25d69b..193694fc97ad 100644
--- a/sys/kern/subr_kdb.c
+++ b/sys/kern/subr_kdb.c
@@ -399,13 +399,9 @@ kdb_trap(int type, int code, struct trapframe *tf)
if (kdb_active)
return (0);
- makectx(tf, &kdb_pcb);
-
critical_enter();
kdb_active++;
- kdb_frame = tf;
- kdb_thr_select(curthread);
#ifdef SMP
if ((did_stop_cpus = kdb_stop_cpus) != 0)
@@ -415,6 +411,10 @@ kdb_trap(int type, int code, struct trapframe *tf)
/* Let MD code do its thing first... */
kdb_cpu_trap(type, code);
+ kdb_frame = tf;
+ makectx(tf, &kdb_pcb);
+ kdb_thr_select(curthread);
+
handled = kdb_dbbe->dbbe_trap(type, code);
#ifdef SMP