wip: IPC and Runtime

This commit is contained in:
karina
2026-05-03 21:57:20 +04:00
parent 5f343c991b
commit 39b2af7626
25 changed files with 371 additions and 66 deletions
+3 -3
View File
@@ -7,7 +7,7 @@
#include <Arch/CPU.h>
#include "../Common/bootinfo.h"
void ModuleLoad(BootModule* module) {
OSTask* ModuleLoad(BootModule* module) {
OSProcess* userProc = HeapAllocate(sizeof(OSProcess));
MemorySet(userProc, 0, sizeof(OSProcess));
userProc->id = SchedulerGetNextProcessID();
@@ -56,8 +56,8 @@ void ModuleLoad(BootModule* module) {
if ((Address)userEntryPoint == 0x0) {
OSLog("Skipping module %s: entry point is 0x0.\n", module->name);
return;
return nullptr;
}
SchedulerSpawn(userEntryPoint, userProc, true, userStackVirt + kVMPageSize);
return SchedulerSpawn(userEntryPoint, userProc, true, userStackVirt + kVMPageSize);
}