mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
LibSymbolication: Use new global variables at /sys/kernel/ directory
This commit is contained in:
parent
c7dca00b65
commit
b579d9518c
Notes:
sideshowbarker
2024-07-17 06:39:26 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/b579d9518c Pull-request: https://github.com/SerenityOS/serenity/pull/15593 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/kleinesfilmroellchen ✅
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ static KernelBaseState s_kernel_base_state = KernelBaseState::Uninitialized;
|
|||
Optional<FlatPtr> kernel_base()
|
||||
{
|
||||
if (s_kernel_base_state == KernelBaseState::Uninitialized) {
|
||||
auto file = Core::File::open("/proc/kernel_base", Core::OpenMode::ReadOnly);
|
||||
auto file = Core::File::open("/sys/kernel/load_base", Core::OpenMode::ReadOnly);
|
||||
if (file.is_error()) {
|
||||
s_kernel_base_state = KernelBaseState::Invalid;
|
||||
return {};
|
||||
|
|
Loading…
Reference in a new issue