aboutsummaryrefslogtreecommitdiff
path: root/kernel/features
diff options
context:
space:
mode:
authorMarvin Borner2020-09-14 18:38:44 +0200
committerMarvin Borner2020-09-14 18:38:44 +0200
commit096f9be4ac328ae39bd794c36a9a04ff68c2b844 (patch)
tree7228f9d1631fd126c1942bafb878cca381ff336b /kernel/features
parent18a0cc60d46d8ab22479e9683c27459703195480 (diff)
Some GUI fixes
Diffstat (limited to 'kernel/features')
-rw-r--r--kernel/features/proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c
index 09f1f4e..aab4fec 100644
--- a/kernel/features/proc.c
+++ b/kernel/features/proc.c
@@ -19,6 +19,7 @@ struct list *proc_list;
struct node *current;
// TODO: Use less memcpy and only copy relevant registers
+// TODO: 20 priority queues (https://www.kernel.org/doc/html/latest/scheduler/sched-nice-design.html)
void scheduler(struct regs *regs)
{
timer_handler();
@@ -151,7 +152,7 @@ struct proc *proc_make()
struct proc *proc = malloc(sizeof(*proc));
proc->pid = pid++;
proc->messages = list_new();
- proc->state = PROC_DEFAULT;
+ proc->state = PROC_RUNNING;
if (current)
list_add(proc_list, proc);