1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

Kernel: Load the kernel symbol table for the aarch64 Kernel

Since kmalloc() now works, we can actually load the kernel symbol table!
This in turn allows us to call dump_backtrace(), and actually get a
useful backtrace in the aarch64 Kernel.
This commit is contained in:
Timon Kruiper 2022-05-03 01:12:55 +02:00 committed by Andreas Kling
parent b464321618
commit e7cf591ec0

View file

@ -18,6 +18,7 @@
#include <Kernel/Arch/aarch64/RPi/Mailbox.h>
#include <Kernel/Arch/aarch64/RPi/Timer.h>
#include <Kernel/Arch/aarch64/RPi/UART.h>
#include <Kernel/KSyms.h>
static void draw_logo();
static u32 query_firmware_version();
@ -44,6 +45,7 @@ extern "C" [[noreturn]] void init()
dbgln();
kmalloc_init();
Kernel::load_kernel_symbol_table();
auto firmware_version = query_firmware_version();
dbgln("Firmware version: {}", firmware_version);