diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-03 20:59:54 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-03 21:11:08 +0100 |
commit | 4bf1a72d2158f7a1531f643444cb896558094973 (patch) | |
tree | 2e2f800ef4014c9515fa8463ff587699c2ea2619 /Kernel/Process.cpp | |
parent | 3dce0f23f4d38a6abff2324a0ec3314e0f265a46 (diff) | |
download | serenity-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.cpp | 4 |
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) |