diff options
Diffstat (limited to 'Kernel/Memory/Region.h')
-rw-r--r-- | Kernel/Memory/Region.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Memory/Region.h b/Kernel/Memory/Region.h index 403e9b743b..d93db7a969 100644 --- a/Kernel/Memory/Region.h +++ b/Kernel/Memory/Region.h @@ -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&); |