mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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
|
@ -30,7 +30,14 @@ DisassemblyModel::DisassemblyModel(const Debug::DebugSession& debug_session, con
|
|||
OwnPtr<ELF::Image> kernel_elf;
|
||||
const ELF::Image* elf = nullptr;
|
||||
|
||||
if (containing_function.value().address_low >= 0xc0000000) {
|
||||
// FIXME: Use /proc for this
|
||||
#if ARCH(I386)
|
||||
FlatPtr kernel_base = 0xc0000000;
|
||||
#else
|
||||
FlatPtr kernel_base = 0x2000000000;
|
||||
#endif
|
||||
|
||||
if (containing_function.value().address_low >= kernel_base) {
|
||||
auto file_or_error = MappedFile::map("/boot/Kernel.debug");
|
||||
if (file_or_error.is_error())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue