summaryrefslogtreecommitdiff
path: root/Kernel/VM/MemoryManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/VM/MemoryManager.h')
-rw-r--r--Kernel/VM/MemoryManager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/VM/MemoryManager.h b/Kernel/VM/MemoryManager.h
index 6dd68d5ce7..95ad451d2c 100644
--- a/Kernel/VM/MemoryManager.h
+++ b/Kernel/VM/MemoryManager.h
@@ -40,12 +40,12 @@ constexpr FlatPtr page_round_down(FlatPtr x)
inline FlatPtr low_physical_to_virtual(FlatPtr physical)
{
- return physical + 0xc0000000;
+ return physical + KERNEL_BASE;
}
inline FlatPtr virtual_to_low_physical(FlatPtr virtual_)
{
- return virtual_ - 0xc0000000;
+ return virtual_ - KERNEL_BASE;
}
enum class UsedMemoryRangeType {
@@ -260,7 +260,7 @@ void VMObject::for_each_region(Callback callback)
inline bool is_user_address(VirtualAddress vaddr)
{
- return vaddr.get() < 0xc0000000;
+ return vaddr.get() < KERNEL_BASE;
}
inline bool is_user_range(VirtualAddress vaddr, size_t size)