diff options
author | Marvin Borner | 2021-06-03 16:47:46 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-03 16:47:46 +0200 |
commit | f7890c4b16b5d817db286119ac0a88630c3a1cf9 (patch) | |
tree | c991a512ac36e632b3a69a165ca556174d4063c7 /kernel/features | |
parent | 98e15f73f090c32b5197ecec0845c408d4a54608 (diff) |
Smashed some dumb bugs
aargh
Diffstat (limited to 'kernel/features')
-rw-r--r-- | kernel/features/proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c index ce33495..b686823 100644 --- a/kernel/features/proc.c +++ b/kernel/features/proc.c @@ -25,7 +25,6 @@ PROTECTED static struct list *proc_list_running = NULL; PROTECTED static struct list *proc_list_blocked = NULL; PROTECTED static struct list *proc_list_idle = NULL; -// 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) HOT FLATTEN u32 scheduler(u32 esp) { @@ -57,7 +56,7 @@ HOT FLATTEN u32 scheduler(u32 esp) } memory_switch_dir(PROC(current)->page_dir); - tss_set_stack(PROC(current)->stack.kernel_ptr); + tss_set_stack(PROC(current)->stack.kernel); fpu_restore(PROC(current)); #if DEBUG_SCHEDULER |