diff options
author | dzwdz | 2022-04-21 19:13:33 +0200 |
---|---|---|
committer | dzwdz | 2022-04-21 19:13:33 +0200 |
commit | a990307680233460b2243c84002725b05a68b94a (patch) | |
tree | bf8129c3dc227e7910026d6f3a42efeb2af8a40a /src/kernel/main.c | |
parent | 0ae12266b7160272fd95875006c6c1b6d6b1dcd2 (diff) |
kernel/proc: only expose `process_switch_any()`
other parts of the kernel don't need to care about which process exactly
gets switched into
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r-- | src/kernel/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c index 9188370..d1046b2 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -7,6 +7,7 @@ #include <stdint.h> _Noreturn static void run_init(struct kmain_info *info) { + // TODO move all of this to process_seed struct process *proc = process_seed(); void __user *init_base = (userptr_t)0x200000; @@ -17,7 +18,7 @@ _Noreturn static void run_init(struct kmain_info *info) { proc->regs.eip = init_base; kprintf("switching...\n"); - process_switch(proc); + process_switch_any(); } void kmain(struct kmain_info info) { |