diff options
| author | Alan Cox <alc@FreeBSD.org> | 2002-06-15 19:10:19 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2002-06-15 19:10:19 +0000 |
| commit | 319490fb7b479032e6115ef5fda28a402bf525c1 (patch) | |
| tree | 5816205d0b91a506a88fcefc7abee15e4215a829 /sys | |
| parent | c4a0032fe3d7d526bf74d157143c6cb433d8e9af (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/vm/vm_glue.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index cfa78fe372c0..587695b6d3e6 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -140,8 +140,6 @@ useracc(addr, len, rw) boolean_t rv; vm_prot_t prot; - GIANT_REQUIRED; - KASSERT((rw & ~VM_PROT_ALL) == 0, ("illegal ``rw'' argument to useracc (%x)\n", rw)); prot = rw; @@ -174,12 +172,15 @@ vslock(addr, len) round_page((vm_offset_t)addr + len), FALSE); } +/* + * MPSAFE + */ void vsunlock(addr, len) caddr_t addr; u_int len; { - GIANT_REQUIRED; + vm_map_unwire(&curproc->p_vmspace->vm_map, trunc_page((vm_offset_t)addr), round_page((vm_offset_t)addr + len), FALSE); |
