sched: all kernel-mode tasks now have negative task ids
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user