aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/proc.c
diff options
context:
space:
mode:
authorMarvin Borner2021-01-13 19:51:40 +0100
committerMarvin Borner2021-01-13 19:51:40 +0100
commit91abed9333241731d0cd877beba4e2d4675989c8 (patch)
tree09a5e509afda809d56db88ec720c78864312620e /kernel/features/proc.c
parent9ac1eda2988b6c7472a24817f4fd623de28a33f5 (diff)
VFS ready function and read yielding
Diffstat (limited to 'kernel/features/proc.c')
-rw-r--r--kernel/features/proc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c
index 79bc6c8..8fbb4c5 100644
--- a/kernel/features/proc.c
+++ b/kernel/features/proc.c
@@ -44,8 +44,12 @@ void scheduler(struct regs *regs)
} else if (((struct proc *)proc_list->head->data)->state == PROC_RUNNING) {
current = proc_list->head;
} else {
- print("TODO: All processes are sleeping!\n"); // TODO!
- /* loop(); */
+ /* sti(); */
+ /* hlt(); */
+ /* cli(); */
+ //print("TODO: All processes are sleeping!\n"); // TODO!
+ //loop();
+ return;
}
memcpy(regs, &((struct proc *)current->data)->regs, sizeof(struct regs));