diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2008-07-25 12:02:10 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2008-07-25 12:02:10 +0000 |
commit | efab4114906956f48f78a998f64b445ebdc9c9a1 (patch) | |
tree | ae76afcecba90cf487b87b5790029c928e5dc614 /sys/uvm | |
parent | 1b401c0764e2a71f59a0277e5df60df184ef72aa (diff) |
some splassert paranoia.
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_map.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index 338ec1fc99e..899dacd668e 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.101 2008/07/18 16:40:17 kurt Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.102 2008/07/25 12:02:09 art Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -726,6 +726,8 @@ uvm_map_p(struct vm_map *map, vaddr_t *startp, vsize_t size, if ((map->flags & VM_MAP_INTRSAFE) == 0) splassert(IPL_NONE); + else + splassert(IPL_VM); /* * step 0: sanity check of protection code @@ -1426,6 +1428,8 @@ uvm_unmap_remove(struct vm_map *map, vaddr_t start, vaddr_t end, if ((map->flags & VM_MAP_INTRSAFE) == 0) splassert(IPL_NONE); + else + splassert(IPL_VM); /* * find first entry |