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 /i386 | |
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 'i386')
-rw-r--r-- | i386/intel/read_fault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/intel/read_fault.c b/i386/intel/read_fault.c index 0b79e3d8..356145e1 100644 --- a/i386/intel/read_fault.c +++ b/i386/intel/read_fault.c @@ -61,7 +61,7 @@ intel_read_fault( * Find the backing store object and offset into it * to begin search. */ - result = vm_map_lookup(&map, vaddr, VM_PROT_READ, &version, + result = vm_map_lookup(&map, vaddr, VM_PROT_READ, FALSE, &version, &object, &offset, &prot, &wired); if (result != KERN_SUCCESS) return (result); @@ -133,7 +133,7 @@ intel_read_fault( vm_offset_t retry_offset; vm_prot_t retry_prot; - result = vm_map_lookup(&map, vaddr, VM_PROT_READ, &version, + result = vm_map_lookup(&map, vaddr, VM_PROT_READ, FALSE, &version, &retry_object, &retry_offset, &retry_prot, &wired); if (result != KERN_SUCCESS) { |