diff options
author | kris <kris@FreeBSD.org> | 2007-03-26 21:45:44 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2007-03-26 21:45:44 +0000 |
commit | 0e5e1ddffd704b66e2b6d865b6db38cace1ef5ae (patch) | |
tree | 965cfd4d52b326654a26687fe7ea69bb3b4ff1f9 /sys | |
parent | 1362b6bc32a65b4be4bdcc100468261aaf40c79c (diff) | |
download | FreeBSD-src-0e5e1ddffd704b66e2b6d865b6db38cace1ef5ae.zip FreeBSD-src-0e5e1ddffd704b66e2b6d865b6db38cace1ef5ae.tar.gz |
Remove unnecessary giant acquisition around panic in #ifdef DIAGNOSTIC
code.
# There is some question about whether this code is even relevant any
# longer (it dates back to prehistoric times, i.e. present in r1.1),
# especially on amd64.
Reviewed by: jhb
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/trap.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/trap.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index a86df0c..6c31c29 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -745,10 +745,8 @@ syscall(struct trapframe *frame) #ifdef DIAGNOSTIC if (ISPL(frame->tf_cs) != SEL_UPL) { - mtx_lock(&Giant); /* try to stabilize the system XXX */ panic("syscall"); /* NOT REACHED */ - mtx_unlock(&Giant); } #endif diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index cf25f9f..d0eb30d 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -924,10 +924,8 @@ syscall(struct trapframe *frame) #ifdef DIAGNOSTIC if (ISPL(frame->tf_cs) != SEL_UPL) { - mtx_lock(&Giant); /* try to stabilize the system XXX */ panic("syscall"); /* NOT REACHED */ - mtx_unlock(&Giant); } #endif |