summaryrefslogtreecommitdiff
path: root/Userland/DevTools/Profiler/DisassemblyModel.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-23 11:32:25 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-23 11:33:36 +0100
commit58fb3ebf660e87a7ac93b5e8a7433ff441e30639 (patch)
tree1c899f032c0f07a3a8a74649204b2fd06f0775a5 /Userland/DevTools/Profiler/DisassemblyModel.cpp
parentc1c9da6c35ff3f28aefb6370dad898cb85e6bcef (diff)
downloadserenity-58fb3ebf660e87a7ac93b5e8a7433ff441e30639.zip
LibCore+AK: Move MappedFile from AK to LibCore
MappedFile is strictly a userspace thing, so it doesn't belong in AK (which is supposed to be user/kernel agnostic.)
Diffstat (limited to 'Userland/DevTools/Profiler/DisassemblyModel.cpp')
-rw-r--r--Userland/DevTools/Profiler/DisassemblyModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/DevTools/Profiler/DisassemblyModel.cpp b/Userland/DevTools/Profiler/DisassemblyModel.cpp
index 749377b38c..9cb250262b 100644
--- a/Userland/DevTools/Profiler/DisassemblyModel.cpp
+++ b/Userland/DevTools/Profiler/DisassemblyModel.cpp
@@ -6,7 +6,7 @@
#include "DisassemblyModel.h"
#include "Profile.h"
-#include <AK/MappedFile.h>
+#include <LibCore/MappedFile.h>
#include <LibDebug/DebugInfo.h>
#include <LibELF/Image.h>
#include <LibGUI/Painter.h>
@@ -40,7 +40,7 @@ static ELF::Image* try_load_kernel_binary()
{
if (s_kernel_binary.has_value())
return &s_kernel_binary->elf;
- auto kernel_binary_or_error = MappedFile::map("/boot/Kernel");
+ auto kernel_binary_or_error = Core::MappedFile::map("/boot/Kernel");
if (!kernel_binary_or_error.is_error()) {
auto kernel_binary = kernel_binary_or_error.release_value();
s_kernel_binary = { { kernel_binary, ELF::Image(kernel_binary->bytes()) } };