Load limine module + alloc user stack

This commit is contained in:
2026-04-01 15:51:04 +02:00
parent d644126901
commit 11a9dd4adb
10 changed files with 61 additions and 3 deletions
+12
View File
@@ -62,6 +62,9 @@ extern volatile struct limine_memmap_request memmap_request;
extern volatile struct limine_hhdm_request hhdm_request;
extern volatile struct limine_kernel_address_request kerneladdr_request;
extern volatile struct limine_boot_time_request date_request;
extern volatile struct limine_module_request module_request;
struct limine_file* file;
extern struct process* processes_list;
extern struct process* current_process;
@@ -119,6 +122,15 @@ void kmain()
scheduler_init();
if (!boot_ctx.module) {
panic(NULL, "could not load 'hello' executable :(");
}
if (boot_ctx.module->module_count == 1) {
file = boot_ctx.module->modules[0];
DEBUG("file: addr=%p size=%u", file->address, file->size);
}
printf(PEPPEROS_SPLASH);
init.all = true;