summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/subr_kdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_kdb.c b/sys/kern/subr_kdb.c
index 193694f..9b48d09 100644
--- a/sys/kern/subr_kdb.c
+++ b/sys/kern/subr_kdb.c
@@ -408,10 +408,11 @@ kdb_trap(int type, int code, struct trapframe *tf)
stop_cpus(PCPU_GET(other_cpus));
#endif
+ kdb_frame = tf;
+
/* Let MD code do its thing first... */
kdb_cpu_trap(type, code);
- kdb_frame = tf;
makectx(tf, &kdb_pcb);
kdb_thr_select(curthread);
OpenPOWER on IntegriCloud