x86_64: smp: set AP idle thread ID to CPU ID
This commit is contained in:
@@ -30,6 +30,7 @@ extern "C" void ap_trampoline_exit(void)
|
||||
this_cpu->c_data = self;
|
||||
|
||||
struct thread *this_thread = create_idle_thread();
|
||||
this_thread->tr_id = __this_ap_id;
|
||||
this_thread->tr_kstack = (struct vm_page *)__ap_stack_page;
|
||||
self->c_rq.rq_idle = self->c_rq.rq_cur = this_thread;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user