mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
Kernel: Move userspace virtual address range base to 0x10000
Now that the shared bottom 2 MiB virtual address mappings are gone userspace can use lower virtual addresses.
This commit is contained in:
parent
fccd0432a1
commit
5f4a67434c
Notes:
sideshowbarker
2024-07-17 22:23:12 +09:00
Author: https://github.com/IdanHo
Commit: 5f4a67434c
Pull-request: https://github.com/SerenityOS/serenity/pull/11318
Reviewed-by: https://github.com/bgianfo ✅
7 changed files with 18 additions and 4 deletions
|
@ -179,7 +179,7 @@ bool Region::map_individual_page_impl(size_t page_index)
|
|||
VERIFY(m_page_directory->get_lock().is_locked_by_current_processor());
|
||||
auto page_vaddr = vaddr_from_page_index(page_index);
|
||||
|
||||
bool user_allowed = page_vaddr.get() >= 0x00800000 && is_user_address(page_vaddr);
|
||||
bool user_allowed = page_vaddr.get() >= USER_RANGE_BASE && is_user_address(page_vaddr);
|
||||
if (is_mmap() && !user_allowed) {
|
||||
PANIC("About to map mmap'ed page at a kernel address");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue