diff options
author | Andreas Kling <kling@serenityos.org> | 2020-01-19 08:58:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-19 08:58:33 +0100 |
commit | 2cd212e5df009cb34239ded40c416e0d1c243207 (patch) | |
tree | 19d468993ad3f97188cefe5e25fb00baf407f74d /Kernel/VM | |
parent | 5ce9382e982648fc961501d4a059789ab1f8c31c (diff) | |
download | serenity-2cd212e5df009cb34239ded40c416e0d1c243207.zip |
Kernel: Let's say that everything < 3GB is user virtual memory
Technically the bottom 2MB is still identity-mapped for the kernel and
not made available to userspace at all, but for simplicity's sake we
can just ignore that and make "address < 0xc0000000" the canonical
check for user/kernel.
Diffstat (limited to 'Kernel/VM')
-rw-r--r-- | Kernel/VM/MemoryManager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/MemoryManager.h b/Kernel/VM/MemoryManager.h index 13751dd296..d9965cbe6e 100644 --- a/Kernel/VM/MemoryManager.h +++ b/Kernel/VM/MemoryManager.h @@ -212,5 +212,5 @@ void VMObject::for_each_region(Callback callback) inline bool is_user_address(VirtualAddress vaddr) { - return vaddr.get() >= (8 * MB) && vaddr.get() < 0xc0000000; + return vaddr.get() < 0xc0000000; } |