From 2f7c054ae0d0d043cb795252ab50cb09c0ca253e Mon Sep 17 00:00:00 2001 From: alc Date: Wed, 7 Jul 2004 04:16:22 +0000 Subject: [PATCH] Add pmap locking to pmap_protect(). --- sys/alpha/alpha/pmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c index 5c82399fa189..90c7689954f0 100644 --- a/sys/alpha/alpha/pmap.c +++ b/sys/alpha/alpha/pmap.c @@ -1686,6 +1686,7 @@ pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, vm_prot_t prot) if ((sva & PAGE_MASK) || (eva & PAGE_MASK)) panic("pmap_protect: unaligned addresses"); + PMAP_LOCK(pmap); while (sva < eva) { /* @@ -1736,6 +1737,7 @@ pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, vm_prot_t prot) sva += PAGE_SIZE; } + PMAP_UNLOCK(pmap); } /*