mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-20 09:21:55 +00:00
Userland: Hardcode the x86_64 kernel base address for now
This commit is contained in:
parent
4fdee56ba3
commit
60b52cfb02
Notes:
sideshowbarker
2024-07-18 08:41:15 +09:00
Author: https://github.com/gunnarbeutner
Commit: 60b52cfb02
Pull-request: https://github.com/SerenityOS/serenity/pull/8891
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/dascandy
6 changed files with 43 additions and 6 deletions
|
@ -105,7 +105,13 @@ GUI::Variant ProfileModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
|
|||
if (node->is_root()) {
|
||||
return GUI::FileIconProvider::icon_for_executable(node->process().executable);
|
||||
}
|
||||
if (node->address() >= 0xc0000000)
|
||||
// FIXME: Use /proc for this
|
||||
#if ARCH(I386)
|
||||
FlatPtr kernel_base = 0xc0000000;
|
||||
#else
|
||||
FlatPtr kernel_base = 0x2000000000;
|
||||
#endif
|
||||
if (node->address() >= kernel_base)
|
||||
return m_kernel_frame_icon;
|
||||
return m_user_frame_icon;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue