mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +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>
|
||||
|
||||
static KSym* s_ksyms;
|
||||
u32 ksym_lowest_address;
|
||||
u32 ksym_highest_address;
|
||||
u32 ksym_count;
|
||||
bool ksyms_ready;
|
||||
u32 ksym_lowest_address = 0xffffffff;
|
||||
u32 ksym_highest_address = 0;
|
||||
u32 ksym_count = 0;
|
||||
bool ksyms_ready = false;
|
||||
|
||||
static u8 parse_hex_digit(char nibble)
|
||||
{
|
||||
|
@ -146,14 +146,6 @@ void dump_backtrace()
|
|||
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()
|
||||
{
|
||||
auto result = VFS::the().open("/kernel.map", 0, 0, VFS::the().root_custody());
|
||||
|
|
|
@ -10,7 +10,6 @@ struct KSym {
|
|||
|
||||
const KSym* ksymbolicate(u32 address);
|
||||
void load_ksyms();
|
||||
void init_ksyms();
|
||||
|
||||
extern bool ksyms_ready;
|
||||
extern u32 ksym_lowest_address;
|
||||
|
|
|
@ -231,7 +231,6 @@ extern "C" [[noreturn]] void init()
|
|||
|
||||
kmalloc_init();
|
||||
slab_alloc_init();
|
||||
init_ksyms();
|
||||
|
||||
// must come after kmalloc_init because we use AK_MAKE_ETERNAL in KParams
|
||||
new KParams(String(reinterpret_cast<const char*>(multiboot_info_ptr->cmdline)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue