aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/tasks/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tasks/process.c')
-rw-r--r--src/kernel/tasks/process.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kernel/tasks/process.c b/src/kernel/tasks/process.c
index 2f45898..a5b9c87 100644
--- a/src/kernel/tasks/process.c
+++ b/src/kernel/tasks/process.c
@@ -54,10 +54,11 @@ void scheduler(struct regs *regs)
paging_switch_directory(current_proc->cr3);
}
-void process_force_switch(struct regs *regs)
+void process_force_switch()
{
quantum = 0;
- scheduler(regs);
+ timer_wait(1);
+ //scheduler(regs);
}
void process_init(struct process *proc)
@@ -246,5 +247,6 @@ u32 uspawn(char *path)
process_spawn(proc);
log("Spawned");
+ process_force_switch();
return 0;
} \ No newline at end of file