apio
dc389da74e
This struct allows us to keep track of what memory is used by the loaded executable. For some reason, freeing this memory when the task exits triggers a kernel page fault, so I'm not doing that right now.
9 lines
195 B
C++
9 lines
195 B
C++
#pragma once
|
|
#include "sys/elf/Image.h"
|
|
#include <stdint.h>
|
|
|
|
namespace ELFLoader
|
|
{
|
|
ELFImage* load_elf_from_address(uintptr_t addr);
|
|
ELFImage* load_elf_from_initrd(const char* filename);
|
|
} |