Reenter KDB on fault on powerpc, instead of panicking

Most other architectures already re-enter KDB on faults, powerpc and mips
are the only outliers.  Correct this for powerpc, so that now bad addresses
can be handled gracefully instead of panicking.
This commit is contained in:
Justin Hibbits 2018-04-10 21:14:54 +00:00
parent 3b1d758fba
commit bda8aa770a

View File

@ -208,6 +208,13 @@ trap(struct trapframe *frame)
VM_CNT_INC(v_trap);
#ifdef KDB
if (kdb_active) {
kdb_reenter();
return;
}
#endif
td = curthread;
p = td->td_proc;