summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-05-23 22:58:09 +0000
committerjhb <jhb@FreeBSD.org>2001-05-23 22:58:09 +0000
commit8d7fd621d74315350c47a651bb4401a71143b291 (patch)
tree07656ab3d90439b258d90f7403808f60f5d327ae /sys/kern/subr_trap.c
parent2441ff245e4759c9c4a99d39db0b02db14999f37 (diff)
downloadFreeBSD-src-8d7fd621d74315350c47a651bb4401a71143b291.zip
FreeBSD-src-8d7fd621d74315350c47a651bb4401a71143b291.tar.gz
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.
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index d11e197..cfc2618 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -644,9 +644,7 @@ restart:
#endif /* DEV_ISA */
}
- mtx_lock(&Giant);
trap_fatal(&frame, eva);
- mtx_unlock(&Giant);
goto out;
}
@@ -889,9 +887,7 @@ nogo:
frame->tf_eip = (int)PCPU_GET(curpcb)->pcb_onfault;
return (0);
}
- mtx_lock(&Giant);
trap_fatal(frame, eva);
- mtx_unlock(&Giant);
return (-1);
}
OpenPOWER on IntegriCloud