mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 17:35:07 +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
|
@ -118,7 +118,7 @@ GVariant ProfileModel::data(const GModelIndex& index, Role role) const
|
|||
auto* node = static_cast<ProfileNode*>(index.internal_data());
|
||||
if (role == Role::Icon) {
|
||||
if (index.column() == Column::StackFrame) {
|
||||
if (node->address() < (8 * MB) || node->address() >= 0xc0000000)
|
||||
if (node->address() >= 0xc0000000)
|
||||
return m_kernel_frame_icon;
|
||||
return m_user_frame_icon;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue