mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +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:
parent
5ce9382e98
commit
2cd212e5df
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue