Parse ELF and load kernel, specify mem types
* Very bare-bones ELF parsing to load the kernel * Custom memory type values for allocated memory
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "kernel_args.h"
|
||||
|
||||
namespace boot {
|
||||
namespace loader {
|
||||
|
||||
kernel::entrypoint load_elf(const void *data, size_t size, uefi::boot_services *bs);
|
||||
struct loaded_elf
|
||||
{
|
||||
void *data;
|
||||
uintptr_t vaddr;
|
||||
uintptr_t entrypoint;
|
||||
};
|
||||
|
||||
loaded_elf load(const void *data, size_t size, uefi::boot_services *bs);
|
||||
|
||||
} // namespace loader
|
||||
} // namespace boot
|
||||
|
||||
Reference in New Issue
Block a user