diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-02-12 17:23:44 +0000 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-02-12 17:23:44 +0000 |
commit | b02edfea01006ea536a8329666eae452b9b8978e (patch) | |
tree | 119f83ae5b0c9eef81f1e64b27892df99bbc3771 /kernel/main/kmain.c | |
parent | 0e570e7302462034214c8082bd8e2b2c3706e0e0 (diff) |
another docker conatiner fix and small weenix updates
Diffstat (limited to 'kernel/main/kmain.c')
-rw-r--r-- | kernel/main/kmain.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/main/kmain.c b/kernel/main/kmain.c index 1d61270..e45299a 100644 --- a/kernel/main/kmain.c +++ b/kernel/main/kmain.c @@ -168,7 +168,7 @@ static void *initproc_run(long arg1, void *arg2) proctest_main(0, NULL); - dbg(DBG_PROC, "%s", "In main thread!"); + dbg(DBG_PROC, "%s", "In main thread!\n"); // see if there are any children to wait for while (do_waitpid(-1, 0, 0) != -ECHILD) @@ -205,7 +205,11 @@ void initproc_start() sched_make_runnable(init_thread); + // update current thread to main thread + curthr = init_thread; + context_make_active(&curcore.kc_ctx); // start the scheduler + // context_make_active(&init_thread->kt_ctx); // TODO: ask about how the core is linked to scheduler } |