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
This commit is contained in:
Kris Kennaway 2007-03-26 21:45:44 +00:00
parent 97c9968179
commit 67eae018cb
2 changed files with 0 additions and 4 deletions

View File

@ -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

View File

@ -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