diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-09-10 00:19:41 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-09-10 00:19:41 +0200 |
commit | b82b779247b2adb164afed85a7e06cf3ca0d8ade (patch) | |
tree | ffba2f998985b70b6f96c4212d039e98f0a88bb4 /src | |
parent | 790ef9888a23fc257a66e742baf3b162b8c1f7c5 (diff) |
hurd: Fix letting map_dev_mem map anywhere
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/x86_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86_pci.c b/src/x86_pci.c index 2fba1e5..a272147 100644 --- a/src/x86_pci.c +++ b/src/x86_pci.c @@ -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); |