LibSymbolication: Use new global variables at /sys/kernel/ directory

This commit is contained in:
Liav A 2022-10-14 21:55:44 +03:00 committed by Andrew Kaster
parent c7dca00b65
commit b579d9518c
Notes: sideshowbarker 2024-07-17 06:39:26 +09:00

View file

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