diff options
| author | Ada Christine <adachristine18@gmail.com> | 2026-05-24 11:09:31 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2026-05-24 11:09:31 +0000 |
| commit | d07bd08dd0446e8c41eccaccbb07e9112200e8ee (patch) | |
| tree | 742a3f9d9d84c8ee55858b2ebc7e0e0f8c714c7c /kc/core/task.c | |
| parent | 9aaf21bf10d00ec12b24499817e3e91dca08c461 (diff) | |
rename and move, function renames in stdio
Diffstat (limited to 'kc/core/task.c')
| -rw-r--r-- | kc/core/task.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kc/core/task.c b/kc/core/task.c index 5eaa3fb..a298a05 100644 --- a/kc/core/task.c +++ b/kc/core/task.c @@ -12,7 +12,7 @@ #include <stdbool.h> #include <lib/elf.h> -#include <lib/kstdio.h> +#include <libc/stdio.h> #include "arch_thread.h" @@ -110,7 +110,7 @@ static volatile atomic_bool preempt_switch_flag = false; static void *idle_thread_entry(void *) { - kprintf("idle thread started\n"); + printf("idle thread started\n"); __asm__ ("sti"); @@ -132,7 +132,7 @@ static void *sleepy_thread_entry(void *p) { sleep_thread(sleep_nanoseconds); thread_slept_count++; - kprintf("thread slept %d times\n", thread_slept_count); + printf("thread slept %d times\n", thread_slept_count); } (void)thread_slept_count; @@ -414,19 +414,19 @@ union kc_thread_result kct_wait(struct kc_thread *target) static void *waited_thread_test(void *) { - kprintf("worker thread, sleeping for some time...\n"); + printf("worker thread, sleeping for some time...\n"); sleep_thread(30000000000); return (void *)1; } static void *waiting_thread_test(void *) { - kprintf("waiting thread\n"); + printf("waiting thread\n"); struct kc_thread *t = create_thread(waited_thread_test, nullptr); t->status = READY; thread_queue_push_back(&ready_queue, t); union kc_thread_result r = kct_wait(t); - kprintf("waited thread terminated result: %d\n", r); + printf("waited thread terminated result: %d\n", r); return nullptr; } @@ -439,7 +439,7 @@ noreturn void task_init(void) timesource = &pit8253_timer_source; timesource->append_callback(sleeping_thread_callback); timesource->start(); - kprintf( + printf( "starting task management, timesource delta %luns\n", timesource->nanoseconds_delta()); @@ -454,7 +454,7 @@ noreturn void task_init(void) thread_queue_push(&ready_queue, idle_thread); block_thread(BLOCKED); // shouldn't ever get here - kprintf("the idle thread exited somehow. we're back in the boot thread. this is not good.\n"); + printf("the idle thread exited somehow. we're back in the boot thread. this is not good.\n"); PANIC(DEAD_END); } |
