summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-09-26 06:48:59 +0000
committermarcel <marcel@FreeBSD.org>2004-09-26 06:48:59 +0000
commit266d410b93ab1a0dab23752b4186f15cf9d1d0f2 (patch)
treed6d173413c8785586c7f5373cb7161fa495a3710
parent5887a0ecf4a9e57176e0f270ef586dc13d52bf3c (diff)
downloadFreeBSD-src-266d410b93ab1a0dab23752b4186f15cf9d1d0f2.zip
FreeBSD-src-266d410b93ab1a0dab23752b4186f15cf9d1d0f2.tar.gz
Fix a bug introduced in the previous commit: kdb_cpu_trap() gets to
the trapframe via kdb_frame, but kdb_frame was not initialized until after the call to kdb_cpu_trap(). Ergo: kdb_cpu_trap() was moved too far up. Pointy hat: marcel
-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