diff options
author | Damien Zammit <damien@zamaudio.com> | 2024-02-22 08:24:32 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-22 09:42:54 +0100 |
commit | 13b2f36d85756df7088be24acdcf847944b6b9ef (patch) | |
tree | 57a41ee343119631e4a0b390bcdd7bac3b00fa13 /kern | |
parent | 7ccf464afa11dfd849c61dd71c2ceadd2c1e8391 (diff) | |
download | gnumach-13b2f36d85756df7088be24acdcf847944b6b9ef.tar.gz gnumach-13b2f36d85756df7088be24acdcf847944b6b9ef.tar.bz2 gnumach-13b2f36d85756df7088be24acdcf847944b6b9ef.zip |
vm_map_lookup: Add parameter for keeping map locked
This adds a parameter called keep_map_locked to vm_map_lookup()
that allows the function to return with the map locked.
This is to prepare for fixing a bug with gsync where the map
is locked twice by mistake.
Co-Authored-By: Sergey Bugaev <bugaevc@gmail.com>
Message-ID: <20240222082410.422869-3-damien@zamaudio.com>
Diffstat (limited to 'kern')
-rw-r--r-- | kern/gsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/gsync.c b/kern/gsync.c index e73a6cf0..19190349 100644 --- a/kern/gsync.c +++ b/kern/gsync.c @@ -134,7 +134,7 @@ probe_address (vm_map_t map, vm_offset_t addr, vm_prot_t rprot; boolean_t wired_p; - if (vm_map_lookup (&map, addr, prot, &ver, + if (vm_map_lookup (&map, addr, prot, FALSE, &ver, &vap->obj, &vap->off, &rprot, &wired_p) != KERN_SUCCESS) return (-1); else if ((rprot & prot) != prot) |