mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
Kernel: Allow flushing of partial regions in sys$msync
This commit is contained in:
parent
49d6ad6633
commit
259f78545a
Notes:
sideshowbarker
2024-07-17 23:16:02 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 259f78545a
Pull-request: https://github.com/SerenityOS/serenity/pull/10957
Reviewed-by: https://github.com/Dexesttp
1 changed files with 1 additions and 1 deletions
|
@ -607,7 +607,7 @@ ErrorOr<FlatPtr> Process::sys$msync(Userspace<void*> address, size_t size, int f
|
||||||
size = Memory::page_round_up(size);
|
size = Memory::page_round_up(size);
|
||||||
|
|
||||||
// FIXME: We probably want to sync all mappings in the address+size range.
|
// FIXME: We probably want to sync all mappings in the address+size range.
|
||||||
auto* region = address_space().find_region_from_range(Memory::VirtualRange { address.vaddr(), size });
|
auto* region = address_space().find_region_containing(Memory::VirtualRange { address.vaddr(), size });
|
||||||
// All regions from address upto address+size shall be mapped
|
// All regions from address upto address+size shall be mapped
|
||||||
if (!region)
|
if (!region)
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue