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:
parent
b464321618
commit
e7cf591ec0
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue