1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:07:43 +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:
Idan Horowitz 2021-12-19 19:36:42 +02:00 committed by Brian Gianforcaro
parent fccd0432a1
commit 5f4a67434c
7 changed files with 18 additions and 4 deletions

View file

@ -89,7 +89,7 @@ public:
void set_mmap(bool mmap) { m_mmap = mmap; }
[[nodiscard]] bool is_user() const { return !is_kernel(); }
[[nodiscard]] bool is_kernel() const { return vaddr().get() < 0x00800000 || vaddr().get() >= kernel_mapping_base; }
[[nodiscard]] bool is_kernel() const { return vaddr().get() < USER_RANGE_BASE || vaddr().get() >= kernel_mapping_base; }
PageFaultResponse handle_fault(PageFault const&);