process_create_user

This commit is contained in:
2026-04-03 18:45:12 +02:00
parent 1fe5eb2d38
commit 437bd0e751
6 changed files with 60 additions and 35 deletions
+6 -9
View File
@@ -118,22 +118,19 @@ void kmain()
process_init();
idle_proc = process_create("idle", (void*)idle_main, 0);
process_create("pedicel", (void*)pedicel_main, 0);
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);
process_create_user(file, "hello");
}
scheduler_init();
printf(PEPPEROS_SPLASH);
init.all = true;
if (boot_ctx.module->module_count == 1) {
file = boot_ctx.module->modules[0];
DEBUG("file: addr=%p size=%u", file->address, file->size);
process_create_user(file);
}
idle();
}