summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2009-06-06 18:57:32 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2009-06-06 18:57:32 +0000
commitacc58279fe10fdf96ea0383a72d4874653fda2ac (patch)
tree6e61fd011e9e4c8ed3cb043807980d62666b4161 /sys/arch/amd64
parent9d1af813bf73cb01fef05e69c0fba11b74eef52c (diff)
When getting a fault in the kernel, we checked for biglock and failed
immediately when biglock wasn't held. But there is nothing inherently wrong with doing copyin/copyout faults without holding biglock, so just remove the check because it prevent us from doing copyin in syscall before we grab the biglock.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/trap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/amd64/amd64/trap.c b/sys/arch/amd64/amd64/trap.c
index 7a8e9130dc2..ee4af801425 100644
--- a/sys/arch/amd64/amd64/trap.c
+++ b/sys/arch/amd64/amd64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.16 2009/01/31 21:18:35 grange Exp $ */
+/* $OpenBSD: trap.c,v 1.17 2009/06/06 18:57:31 art Exp $ */
/* $NetBSD: trap.c,v 1.2 2003/05/04 23:51:56 fvdl Exp $ */
/*-
@@ -344,10 +344,6 @@ copyfault:
case T_PAGEFLT: /* allow page faults in kernel mode */
if (p == NULL)
goto we_re_toast;
-#ifdef MULTIPROCESSOR
- if ((p->p_flag & P_BIGLOCK) == 0)
- goto we_re_toast;
-#endif
cr2 = rcr2();
KERNEL_LOCK();
goto faultcommon;