diff options
| author | Alan Cox <alc@FreeBSD.org> | 2004-07-30 20:38:30 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2004-07-30 20:38:30 +0000 |
| commit | 9bb0e0686177321598c25b25527322951d7c2c87 (patch) | |
| tree | faa2860aa76235455158a6f157cb6600621e1bb2 /sys/vm/vm_map.c | |
| parent | 9be60284a61cba925961107135ac54d265afff20 (diff) | |
Notes
Diffstat (limited to 'sys/vm/vm_map.c')
| -rw-r--r-- | sys/vm/vm_map.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index b5c69174b4e0..baacf706c100 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -1394,14 +1394,12 @@ vm_map_protect(vm_map_t map, vm_offset_t start, vm_offset_t end, * here -- CHECK THIS XXX */ if (current->protection != old_prot) { - mtx_lock(&Giant); #define MASK(entry) (((entry)->eflags & MAP_ENTRY_COW) ? ~VM_PROT_WRITE : \ VM_PROT_ALL) pmap_protect(map->pmap, current->start, current->end, current->protection & MASK(current)); #undef MASK - mtx_unlock(&Giant); } vm_map_simplify_entry(map, current); current = current->next; |
