From dcd28d5246eec562c195fba07c7bd4ce7b69c94b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 9 Jan 2021 14:06:32 +0100 Subject: Started new heap implementation (not working yet) --- kernel/features/proc.c | 2 ++ kernel/main.c | 1 + 2 files changed, 3 insertions(+) (limited to 'kernel') diff --git a/kernel/features/proc.c b/kernel/features/proc.c index d76312c..c0216bc 100644 --- a/kernel/features/proc.c +++ b/kernel/features/proc.c @@ -142,6 +142,8 @@ void proc_exit(struct proc *proc, int status) printf("Process %s exited with status %d\n", proc->name, status); quantum = 0; // TODO: Add quantum to each process struct? + sti(); + hlt(); } void proc_yield(struct regs *r) diff --git a/kernel/main.c b/kernel/main.c index 563cae7..665d474 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3