diff options
author | Marvin Borner | 2020-04-28 20:59:57 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-28 20:59:57 +0200 |
commit | 5f8b5ce7efb7738eaebad43f9648975788ae19ff (patch) | |
tree | ab8fc4d4baa4adb99dc90461df689650acf34cef /src/kernel/tasks | |
parent | bfe16de4be67565f1a1e7b1331fcbe3aedf9c54e (diff) |
Fixed userspace entering...
Many other fixes too, but I won't mention them because I don't want to
:)
Diffstat (limited to 'src/kernel/tasks')
-rw-r--r-- | src/kernel/tasks/process.c | 2 | ||||
-rw-r--r-- | src/kernel/tasks/userspace.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/tasks/process.c b/src/kernel/tasks/process.c index 123d2d7..4cb8d8c 100644 --- a/src/kernel/tasks/process.c +++ b/src/kernel/tasks/process.c @@ -28,7 +28,7 @@ void scheduler(struct regs *regs) current_proc = root; } - debug("Task switch to %s", current_proc->name); + //debug("Task switch to %s", current_proc->name); while (current_proc->state == PROC_ASLEEP) { current_proc = current_proc->next; diff --git a/src/kernel/tasks/userspace.c b/src/kernel/tasks/userspace.c index 8b88b87..696a9e9 100644 --- a/src/kernel/tasks/userspace.c +++ b/src/kernel/tasks/userspace.c @@ -29,7 +29,7 @@ void userspace_enter(struct process *proc) current_proc = proc; - sti(); + sti(); // TODO: Prevent race conditions in userspace jumping debug("Jumping to userspace!"); jump_userspace(); } |