summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2007-04-27 18:01:50 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2007-04-27 18:01:50 +0000
commit076107385debfd5627fbe3e03d316dd3dbc458ec (patch)
tree1c860f02a60cfc1793d9c9d7f4ca09af33754186 /sys/uvm
parent87917a1771c49fd07228020232e30f60b76e2819 (diff)
For uvm_map and uvm_unmap, splassert(IPL_NONE) for non-INTRSAFE maps.
miod@ ok
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_map.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index a8fea55a16c..0f4c73b8750 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.91 2007/04/27 16:23:49 art Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.92 2007/04/27 18:01:49 art Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -725,6 +725,9 @@ uvm_map_p(struct vm_map *map, vaddr_t *startp, vsize_t size,
uvm_tree_sanity(map, "map entry");
+ if ((map->flags & VM_MAP_INTRSAFE) == 0)
+ splassert(IPL_NONE);
+
/*
* step 0: sanity check of protection code
*/
@@ -1381,6 +1384,9 @@ uvm_unmap_remove(struct vm_map *map, vaddr_t start, vaddr_t end,
uvm_tree_sanity(map, "unmap_remove entry");
+ if ((map->flags & VM_MAP_INTRSAFE) == 0)
+ splassert(IPL_NONE);
+
/*
* find first entry
*/