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

Move kernel symbolication code out of init.cpp and into its own KSym files.

Also use a simple array of { dword, const char* } for the KSyms and put the
whole shebang in kmalloc_eternal() memory. This was a fugly source of
kmalloc perma-frag.
This commit is contained in:
Andreas Kling 2018-12-24 22:59:10 +01:00
parent 6a9fa3e41a
commit 503e32552c
7 changed files with 163 additions and 157 deletions

16
Kernel/KSyms.h Normal file
View file

@ -0,0 +1,16 @@
#pragma once
#include <AK/AKString.h>
#include <AK/Vector.h>
struct KSym {
dword address;
const char* name;
};
const KSym* ksymbolicate(dword address) PURE;
void load_ksyms();
extern bool ksyms_ready;
extern dword ksym_lowest_address;
extern dword ksym_highest_address;