Move makectx() after kdb_cpu_trap(), so the PCB will have possible MD

corrections made to the trapframe. This is more logical.
This commit is contained in:
Marcel Moolenaar 2004-09-17 22:27:23 +00:00
parent 08d79b63f6
commit ddf4122592
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135407

View File

@ -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