From 8d7fd621d74315350c47a651bb4401a71143b291 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 23 May 2001 22:58:09 +0000 Subject: 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. --- sys/amd64/amd64/trap.c | 4 ---- sys/i386/i386/trap.c | 4 ---- sys/kern/subr_trap.c | 4 ---- 3 files changed, 12 deletions(-) (limited to 'sys') diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index d11e197..cfc2618 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/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); } diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index d11e197..cfc2618 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/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); } 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); } -- cgit v1.1