summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-07-29 17:54:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-07-29 17:54:36 +0000
commit1c24f41e805b8ac98744aa2a32fad08ed2a7dcad (patch)
tree0e14d8c90edf89442abd0b29f7bbf350e8bcacda /sys/arch
parent4df4f6feefca62a30287f98f59a6d83e202639a5 (diff)
Acquire the kernel lock in pmap_remove(). The reasons for this can't be
stated here as I have been asked to be polite in this commit message. ok deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/m88k/m88k/pmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/m88k/m88k/pmap.c b/sys/arch/m88k/m88k/pmap.c
index a22fddb293d..ef69b823fee 100644
--- a/sys/arch/m88k/m88k/pmap.c
+++ b/sys/arch/m88k/m88k/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.80 2015/07/25 20:45:05 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.81 2015/07/29 17:54:35 miod Exp $ */
/*
* Copyright (c) 2001-2004, 2010, Miodrag Vallat.
@@ -1328,9 +1328,11 @@ pmap_remove(pmap_t pmap, vaddr_t sva, vaddr_t eva)
{
int s;
+ KERNEL_LOCK();
s = splvm();
pmap_remove_range(pmap, sva, eva);
splx(s);
+ KERNEL_UNLOCK();
}
/*