mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:57:34 +00:00
Kernel/aarch64: Set kernel_load_base and correctly calculate symbol addr
Setting the kernel_load_base variable caused backtracking to regress, so to have proper backtracing the calculation of the symbol address in KSyms.cpp needs to keep into account that the aarch64 kernel is linked at a high virtual memory address.
This commit is contained in:
parent
c7802cef25
commit
5cb37038a3
2 changed files with 11 additions and 0 deletions
|
@ -269,6 +269,7 @@ void init_page_tables()
|
|||
{
|
||||
*adjust_by_mapping_base(&physical_to_virtual_offset) = KERNEL_MAPPING_BASE;
|
||||
*adjust_by_mapping_base(&kernel_mapping_base) = KERNEL_MAPPING_BASE;
|
||||
*adjust_by_mapping_base(&kernel_load_base) = KERNEL_MAPPING_BASE;
|
||||
|
||||
PageBumpAllocator allocator(adjust_by_mapping_base((u64*)page_tables_phys_start), adjust_by_mapping_base((u64*)page_tables_phys_end));
|
||||
auto root_table = allocator.take_page();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue