diff options
author | 2009-06-06 18:57:31 +0000 | |
---|---|---|
committer | 2009-06-06 18:57:31 +0000 | |
commit | 6b28c5eb9a4aa41e6a5c63fd7aae715677fa7022 (patch) | |
tree | 3929b6d0ee6cbf622fe5a01ef21a612e7cb77989 | |
parent | If ntpd decides the clock has become unsynced, reset the number of saved (diff) | |
download | wireguard-openbsd-6b28c5eb9a4aa41e6a5c63fd7aae715677fa7022.tar.xz wireguard-openbsd-6b28c5eb9a4aa41e6a5c63fd7aae715677fa7022.zip |
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.
-rw-r--r-- | sys/arch/amd64/amd64/trap.c | 6 |
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; |