Lines Matching refs:current_starting_cpu

23 static int current_starting_cpu = 0;  variable
99 current_starting_cpu = proc_local_apic_structs[i]->ACPI_Processor_UID; in smp_init()
102 … cpu_core_info[current_starting_cpu].stack_start = (uint64_t)kmalloc(STACK_SIZE, 0) + STACK_SIZE; in smp_init()
103 …cpu_core_info[current_starting_cpu].ist_stack_start = (uint64_t)(kmalloc(STACK_SIZE, 0)) + STACK_S… in smp_init()
105 memset((void *)cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
106 … memset((void *)cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
110 …((struct process_control_block *)(cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE))->… in smp_init()
112 …((struct process_control_block *)(cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE… in smp_init()
115 … cpu_core_info[current_starting_cpu].tss_vaddr = (uint64_t)&initial_tss[current_starting_cpu]; in smp_init()
117 memset(&initial_tss[current_starting_cpu], 0, sizeof(struct tss_struct)); in smp_init()
119 …set_tss_descriptor(10 + (current_starting_cpu * 2), (void *)(cpu_core_info[current_starting_cpu].t… in smp_init()
122 …(uint *)cpu_core_info[current_starting_cpu].tss_vaddr, cpu_core_info[current_starting_cpu].stack_s… in smp_init()
123 … cpu_core_info[current_starting_cpu].stack_start, cpu_core_info[current_starting_cpu].stack_start, in smp_init()
124 …cpu_core_info[current_starting_cpu].ist_stack_start, cpu_core_info[current_starting_cpu].ist_stack… in smp_init()
125 …cpu_core_info[current_starting_cpu].ist_stack_start, cpu_core_info[current_starting_cpu].ist_stack… in smp_init()
126 …cpu_core_info[current_starting_cpu].ist_stack_start, cpu_core_info[current_starting_cpu].ist_stack… in smp_init()
127 cpu_core_info[current_starting_cpu].ist_stack_start); in smp_init()
160 … __asm__ __volatile__("movq %0, %%rbp \n\t" ::"m"(cpu_core_info[current_starting_cpu].stack_start) in smp_ap_start()
162 … __asm__ __volatile__("movq %0, %%rsp \n\t" ::"m"(cpu_core_info[current_starting_cpu].stack_start) in smp_ap_start()
165 ksuccess("AP core %d successfully started!", current_starting_cpu); in smp_ap_start()
186 current_pcb->thread->rbp = cpu_core_info[current_starting_cpu].stack_start; in smp_ap_start()
187 current_pcb->thread->rsp = cpu_core_info[current_starting_cpu].stack_start; in smp_ap_start()
190 current_pcb->cpu_id = current_starting_cpu; in smp_ap_start()
194 load_TR(10 + current_starting_cpu * 2); in smp_ap_start()
197 sched_set_cpu_idle(current_starting_cpu, current_pcb); in smp_ap_start()