1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +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

View file

@ -4,14 +4,6 @@
#include <AK/Vector.h>
#include <AK/AKString.h>
struct KSym {
dword address;
String name;
};
Vector<KSym, KmallocEternalAllocator>& ksyms() PURE;
const KSym* ksymbolicate(dword address) PURE;
struct system_t
{
time_t uptime;