Kernel: make load_elf() its own function

This commit is contained in:
Bananymous
2023-06-04 01:24:11 +03:00
parent 479817231a
commit 1b1f22c35e
2 changed files with 50 additions and 38 deletions

View File

@@ -14,6 +14,8 @@
#include <sys/stat.h>
namespace LibELF { class ELF; }
namespace Kernel
{
@@ -86,7 +88,7 @@ namespace Kernel
static Process* create_process();
static void register_process(Process*);
BAN::ErrorOr<void> cleanup_and_load_elf(BAN::StringView);
void load_elf(LibELF::ELF&);
BAN::ErrorOr<BAN::String> absolute_path_of(BAN::StringView) const;