summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/trap.c2
-rw-r--r--sys/i386/i386/trap.c2
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
OpenPOWER on IntegriCloud