Lines Matching refs:current_starting_cpu

21 int current_starting_cpu = 0;  variable
82 current_starting_cpu = proc_local_apic_structs[i]->ACPI_Processor_UID; in smp_init()
85 … cpu_core_info[current_starting_cpu].stack_start = (uint64_t)kmalloc(STACK_SIZE, 0) + STACK_SIZE; in smp_init()
86 …cpu_core_info[current_starting_cpu].ist_stack_start = (uint64_t)(kmalloc(STACK_SIZE, 0)) + STACK_S… in smp_init()
88 memset((void *)cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
89 … memset((void *)cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
93 …((struct process_control_block *)(cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE))->… in smp_init()
95 …((struct process_control_block *)(cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE… in smp_init()
98 … cpu_core_info[current_starting_cpu].tss_vaddr = (uint64_t)&initial_tss[current_starting_cpu]; in smp_init()
100 memset(&initial_tss[current_starting_cpu], 0, sizeof(struct tss_struct)); in smp_init()
102 …set_tss_descriptor(10 + (current_starting_cpu * 2), (void *)(cpu_core_info[current_starting_cpu].t… in smp_init()
105 …(uint *)cpu_core_info[current_starting_cpu].tss_vaddr, cpu_core_info[current_starting_cpu].stack_s… in smp_init()
106 … cpu_core_info[current_starting_cpu].stack_start, cpu_core_info[current_starting_cpu].stack_start, in smp_init()
107 …cpu_core_info[current_starting_cpu].ist_stack_start, cpu_core_info[current_starting_cpu].ist_stack… in smp_init()
108 …cpu_core_info[current_starting_cpu].ist_stack_start, cpu_core_info[current_starting_cpu].ist_stack… in smp_init()
109 …cpu_core_info[current_starting_cpu].ist_stack_start, cpu_core_info[current_starting_cpu].ist_stack… in smp_init()
110 cpu_core_info[current_starting_cpu].ist_stack_start); in smp_init()
146 …__asm__ __volatile__("movq %0, %%rbp \n\t" ::"m"(cpu_core_info[current_starting_cpu].stack_start) … in smp_ap_start()
147 …__asm__ __volatile__("movq %0, %%rsp \n\t" ::"m"(cpu_core_info[current_starting_cpu].stack_start) … in smp_ap_start()
149 ksuccess("AP core %d successfully started!", current_starting_cpu); in smp_ap_start()
173 current_pcb->cpu_id = current_starting_cpu; in smp_ap_start()
177 load_TR(10 + current_starting_cpu * 2); in smp_ap_start()