mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:58:11 +00:00
Kernel: Remove unnecessary init_ksyms() function
This commit is contained in:
parent
4f4d4670fe
commit
31beff8afb
3 changed files with 4 additions and 14 deletions
|
@ -6,10 +6,10 @@
|
||||||
#include <Kernel/FileSystem/FileDescription.h>
|
#include <Kernel/FileSystem/FileDescription.h>
|
||||||
|
|
||||||
static KSym* s_ksyms;
|
static KSym* s_ksyms;
|
||||||
u32 ksym_lowest_address;
|
u32 ksym_lowest_address = 0xffffffff;
|
||||||
u32 ksym_highest_address;
|
u32 ksym_highest_address = 0;
|
||||||
u32 ksym_count;
|
u32 ksym_count = 0;
|
||||||
bool ksyms_ready;
|
bool ksyms_ready = false;
|
||||||
|
|
||||||
static u8 parse_hex_digit(char nibble)
|
static u8 parse_hex_digit(char nibble)
|
||||||
{
|
{
|
||||||
|
@ -146,14 +146,6 @@ void dump_backtrace()
|
||||||
dump_backtrace_impl(ebp, ksyms_ready);
|
dump_backtrace_impl(ebp, ksyms_ready);
|
||||||
}
|
}
|
||||||
|
|
||||||
void init_ksyms()
|
|
||||||
{
|
|
||||||
ksyms_ready = false;
|
|
||||||
ksym_lowest_address = 0xffffffff;
|
|
||||||
ksym_highest_address = 0;
|
|
||||||
ksym_count = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void load_ksyms()
|
void load_ksyms()
|
||||||
{
|
{
|
||||||
auto result = VFS::the().open("/kernel.map", 0, 0, VFS::the().root_custody());
|
auto result = VFS::the().open("/kernel.map", 0, 0, VFS::the().root_custody());
|
||||||
|
|
|
@ -10,7 +10,6 @@ struct KSym {
|
||||||
|
|
||||||
const KSym* ksymbolicate(u32 address);
|
const KSym* ksymbolicate(u32 address);
|
||||||
void load_ksyms();
|
void load_ksyms();
|
||||||
void init_ksyms();
|
|
||||||
|
|
||||||
extern bool ksyms_ready;
|
extern bool ksyms_ready;
|
||||||
extern u32 ksym_lowest_address;
|
extern u32 ksym_lowest_address;
|
||||||
|
|
|
@ -231,7 +231,6 @@ extern "C" [[noreturn]] void init()
|
||||||
|
|
||||||
kmalloc_init();
|
kmalloc_init();
|
||||||
slab_alloc_init();
|
slab_alloc_init();
|
||||||
init_ksyms();
|
|
||||||
|
|
||||||
// must come after kmalloc_init because we use AK_MAKE_ETERNAL in KParams
|
// must come after kmalloc_init because we use AK_MAKE_ETERNAL in KParams
|
||||||
new KParams(String(reinterpret_cast<const char*>(multiboot_info_ptr->cmdline)));
|
new KParams(String(reinterpret_cast<const char*>(multiboot_info_ptr->cmdline)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue