1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

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.
This commit is contained in:
Andreas Kling 2020-01-19 08:58:07 +01:00
parent 5ce9382e98
commit 2cd212e5df
3 changed files with 3 additions and 3 deletions

View file

@ -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;
}