In r1.190, vslock() and vsunlock() were bogusly made to do a "user wire"
and a "system unwire." Make this a "system wire" and "system unwire." Reviewed by: alc
This commit is contained in:
parent
1e881321c1
commit
129c6b32bf
@ -216,7 +216,7 @@ vslock(void *addr, size_t len)
|
|||||||
return (EAGAIN);
|
return (EAGAIN);
|
||||||
#endif
|
#endif
|
||||||
error = vm_map_wire(&curproc->p_vmspace->vm_map, start, end,
|
error = vm_map_wire(&curproc->p_vmspace->vm_map, start, end,
|
||||||
VM_MAP_WIRE_USER | VM_MAP_WIRE_NOHOLES);
|
VM_MAP_WIRE_SYSTEM | VM_MAP_WIRE_NOHOLES);
|
||||||
/*
|
/*
|
||||||
* Return EFAULT on error to match copy{in,out}() behaviour
|
* Return EFAULT on error to match copy{in,out}() behaviour
|
||||||
* rather than returning ENOMEM like mlock() would.
|
* rather than returning ENOMEM like mlock() would.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user