user program (still many #PF)
This commit is contained in:
+7
-6
@@ -124,15 +124,16 @@ void kmain()
|
||||
|
||||
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;
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user