kernel: Implement some functions

This commit is contained in:
IndecisiveTurtle 2024-06-21 18:22:37 +03:00 committed by georgemoralis
parent 7bdaeafdfd
commit 2506a285f4
9 changed files with 69 additions and 12 deletions

View file

@ -137,10 +137,12 @@ struct DynamicModuleInfo {
};
using ModuleFunc = int (*)(size_t, const void*);
class MemoryManager;
class Module {
public:
explicit Module(const std::filesystem::path& file, u32& max_tls_index);
explicit Module(Core::MemoryManager* memory, const std::filesystem::path& file,
u32& max_tls_index);
~Module();
VAddr GetBaseAddress() const noexcept {
@ -220,6 +222,7 @@ public:
const LibraryInfo* FindLibrary(std::string_view id);
public:
Core::MemoryManager* memory;
std::filesystem::path file;
std::string name;
Loader::Elf elf;