Don't acquire Giant just to call trap_fatal(), we are about to panic

anyway so we'd rather see the printf's then block if the system is
hosed.
This commit is contained in:
John Baldwin 2001-05-23 22:58:09 +00:00
parent bdc60f5bd3
commit 0dfefe6829
3 changed files with 0 additions and 12 deletions

View File

@ -644,9 +644,7 @@ trap(frame)
#endif /* DEV_ISA */
}
mtx_lock(&Giant);
trap_fatal(&frame, eva);
mtx_unlock(&Giant);
goto out;
}
@ -889,9 +887,7 @@ trap_pfault(frame, usermode, eva)
frame->tf_eip = (int)PCPU_GET(curpcb)->pcb_onfault;
return (0);
}
mtx_lock(&Giant);
trap_fatal(frame, eva);
mtx_unlock(&Giant);
return (-1);
}

View File

@ -644,9 +644,7 @@ trap(frame)
#endif /* DEV_ISA */
}
mtx_lock(&Giant);
trap_fatal(&frame, eva);
mtx_unlock(&Giant);
goto out;
}
@ -889,9 +887,7 @@ trap_pfault(frame, usermode, eva)
frame->tf_eip = (int)PCPU_GET(curpcb)->pcb_onfault;
return (0);
}
mtx_lock(&Giant);
trap_fatal(frame, eva);
mtx_unlock(&Giant);
return (-1);
}

View File

@ -644,9 +644,7 @@ trap(frame)
#endif /* DEV_ISA */
}
mtx_lock(&Giant);
trap_fatal(&frame, eva);
mtx_unlock(&Giant);
goto out;
}
@ -889,9 +887,7 @@ trap_pfault(frame, usermode, eva)
frame->tf_eip = (int)PCPU_GET(curpcb)->pcb_onfault;
return (0);
}
mtx_lock(&Giant);
trap_fatal(frame, eva);
mtx_unlock(&Giant);
return (-1);
}