summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-03 20:59:54 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-03 21:11:08 +0100
commit4bf1a72d2158f7a1531f643444cb896558094973 (patch)
tree2e2f800ef4014c9515fa8463ff587699c2ea2619 /Kernel/Process.cpp
parent3dce0f23f4d38a6abff2324a0ec3314e0f265a46 (diff)
downloadserenity-4bf1a72d2158f7a1531f643444cb896558094973.zip
Kernel: Teach Region how to remap itself
Now remapping (i.e flushing kernel metadata to the CPU page tables) is done by simply calling Region::remap().
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 74a643ee6e..1ff6fd8586 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -283,7 +283,7 @@ int Process::sys$mprotect(void* addr, size_t size, int prot)
if (!region)
return -EINVAL;
region->set_writable(prot & PROT_WRITE);
- MM.remap_region(page_directory(), *region);
+ region->remap();
return 0;
}
@@ -885,7 +885,7 @@ void create_signal_trampolines()
memcpy(code_ptr, trampoline, trampoline_size);
trampoline_region->set_writable(false);
- MM.remap_region(*trampoline_region->page_directory(), *trampoline_region);
+ trampoline_region->remap();
}
int Process::sys$restore_signal_mask(u32 mask)