Add a kernel ELF module and load it in a new process.
Don't yet jump to userspace.
This commit is contained in:
parent
f86bbe6ea9
commit
aefb4f082b
22 changed files with 223 additions and 16 deletions
|
|
@ -25,4 +25,15 @@ uint64_t GetHigherHalfDirectMap() {
|
|||
return gHhdmRequest.response->offset;
|
||||
}
|
||||
|
||||
static volatile struct limine_module_request gModuleRequest {
|
||||
.id = LIMINE_MODULE_REQUEST, .revision = 0, .response = 0,
|
||||
};
|
||||
|
||||
const limine_module_response& GetModules() {
|
||||
if (!gModuleRequest.response) {
|
||||
panic("No module response from limine");
|
||||
}
|
||||
return *gModuleRequest.response;
|
||||
}
|
||||
|
||||
} // namespace boot
|
||||
|
|
|
|||
|
|
@ -7,4 +7,6 @@ namespace boot {
|
|||
const limine_memmap_response& GetMemoryMap();
|
||||
uint64_t GetHigherHalfDirectMap();
|
||||
|
||||
const limine_module_response& GetModules();
|
||||
|
||||
} // namespace boot
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
TIMEOUT=0
|
||||
|
||||
:AcadiaOS
|
||||
PROTOCOL=limine
|
||||
|
||||
PROTOCOL=limine
|
||||
|
||||
KERNEL_PATH=boot:///zion
|
||||
KERNEL_PATH=boot:///zion
|
||||
MODULE_PATH=boot:///sys/test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue