Commit b82b7792 authored by Samuel Thibault's avatar Samuel Thibault
Browse files

hurd: Fix letting map_dev_mem map anywhere


Signed-off-by: Samuel Thibault's avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
parent 790ef988
......@@ -254,7 +254,7 @@ map_dev_mem(void **dest, size_t mem_offset, size_t mem_size, int write)
err = vm_map (mach_task_self (), (vm_address_t *)dest, mem_size,
(vm_address_t) 0, /* mask */
*dest == 0, /* anywhere? */
1, /* anywhere? */
pager, mem_offset,
0, /* copy */
prot, VM_PROT_ALL, VM_INHERIT_SHARE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment