diff options
author | Liav A <liavalb@gmail.com> | 2020-01-09 23:29:31 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-14 15:38:58 +0100 |
commit | d2b41010c550e7574698dc7e74c6f24958ef1737 (patch) | |
tree | 4b7d4e29d01f96a9e2e881a6f5f9a87fd57d7b27 /Kernel/Process.cpp | |
parent | b913e300111c6dc403a8d0d6691890de14ea9de7 (diff) | |
download | serenity-d2b41010c550e7574698dc7e74c6f24958ef1737.zip |
Kernel: Change Region allocation helpers
We now can create a cacheable Region, so when map() is called, if a
Region is cacheable then all the virtual memory space being allocated
to it will be marked as not cache disabled.
In addition to that, OS components can create a Region that will be
mapped to a specific physical address by using the appropriate helper
method.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index ef7acc69b4..7146af9deb 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -1313,9 +1313,8 @@ extern "C" void asm_signal_trampoline_end(void); void create_signal_trampolines() { InterruptDisabler disabler; - // NOTE: We leak this region. - auto* trampoline_region = MM.allocate_user_accessible_kernel_region(PAGE_SIZE, "Signal trampolines", Region::Access::Read | Region::Access::Write | Region::Access::Execute).leak_ptr(); + auto* trampoline_region = MM.allocate_user_accessible_kernel_region(PAGE_SIZE, "Signal trampolines", Region::Access::Read | Region::Access::Write | Region::Access::Execute, false).leak_ptr(); g_return_to_ring3_from_signal_trampoline = trampoline_region->vaddr(); u8* trampoline = (u8*)asm_signal_trampoline; |