apio
0131193379
We should start to drop the old InitRD API, which only allows for files to be loaded from the initrd, and which forces pathnames to be relative (bin/init) With VFS, we can load any kind of file from any kind of filesystem, and using paths that make sense (/bin/init)
9 lines
199 B
C++
9 lines
199 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_filesystem(const char* filename);
|
|
} |