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:
parent
2ca675d9a8
commit
f2afc2cd7a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user