MFi386: curpcb is no longer null anymore, so do not test for it.
This commit is contained in:
parent
165e0ac05b
commit
c0fddb5b17
@ -371,8 +371,7 @@ trap(frame)
|
||||
frame.tf_rip = (long)doreti_iret_fault;
|
||||
goto out;
|
||||
}
|
||||
if (PCPU_GET(curpcb) != NULL &&
|
||||
PCPU_GET(curpcb)->pcb_onfault != NULL) {
|
||||
if (PCPU_GET(curpcb)->pcb_onfault != NULL) {
|
||||
frame.tf_rip =
|
||||
(long)PCPU_GET(curpcb)->pcb_onfault;
|
||||
goto out;
|
||||
@ -555,7 +554,6 @@ trap_pfault(frame, usermode)
|
||||
nogo:
|
||||
if (!usermode) {
|
||||
if (td->td_intr_nesting_level == 0 &&
|
||||
PCPU_GET(curpcb) != NULL &&
|
||||
PCPU_GET(curpcb)->pcb_onfault != NULL) {
|
||||
frame->tf_rip = (long)PCPU_GET(curpcb)->pcb_onfault;
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user