From ddf41225924d52fe1ae4d59041d00339c1e12d29 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Fri, 17 Sep 2004 22:27:23 +0000 Subject: Move makectx() after kdb_cpu_trap(), so the PCB will have possible MD corrections made to the trapframe. This is more logical. --- sys/kern/subr_kdb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern/subr_kdb.c') 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 -- cgit v1.2.3