sched: all kernel-mode tasks now have negative task ids

This commit is contained in:
2026-02-08 13:09:29 +00:00
parent 18a5325fa7
commit 27bed1a3d3
4 changed files with 18 additions and 26 deletions

View File

@@ -39,11 +39,11 @@ kern_status_t sched_init(void)
struct thread *this_thread = QUEUE_CONTAINER(
struct thread,
tr_threads,
tr_parent_entry,
queue_first(&kernel_task()->t_threads));
struct thread *idle_thread = QUEUE_CONTAINER(
struct thread,
tr_threads,
tr_parent_entry,
queue_first(&idle_task()->t_threads));
struct cpu_data *this_cpu = get_this_cpu();