1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

Kernel: Split debug symbols into a separate file

This speeds up the boot process considerably when specifying the kernel
image via -initrd.
This commit is contained in:
Gunnar Beutner 2021-07-17 09:43:15 +02:00 committed by Andreas Kling
parent b708b23b13
commit 98f8ecd9d2
6 changed files with 10 additions and 5 deletions

View file

@ -42,7 +42,7 @@ DisassemblyModel::DisassemblyModel(Profile& profile, ProfileNode& node)
FlatPtr base_address = 0;
if (m_node.address() >= 0xc0000000) {
if (!m_kernel_file) {
auto file_or_error = MappedFile::map("/boot/Kernel");
auto file_or_error = MappedFile::map("/boot/Kernel.debug");
if (file_or_error.is_error())
return;
m_kernel_file = file_or_error.release_value();