Home
last modified time | relevance | path

Searched refs:current_starting_cpu (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.2/kernel/src/smp/
Dsmp.c21 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()
[all …]