Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/smp/
Dsmp.c22 static int current_starting_cpu = 0; variable
88 current_starting_cpu = proc_local_apic_structs[i]->ACPI_Processor_UID; in smp_init()
91 … cpu_core_info[current_starting_cpu].stack_start = (uint64_t)kmalloc(STACK_SIZE, 0) + STACK_SIZE; in smp_init()
92 …cpu_core_info[current_starting_cpu].ist_stack_start = (uint64_t)(kmalloc(STACK_SIZE, 0)) + STACK_S… in smp_init()
94 memset((void *)cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
95 … memset((void *)cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
99 …((struct process_control_block *)(cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE))->… in smp_init()
101 …((struct process_control_block *)(cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE… in smp_init()
104 … cpu_core_info[current_starting_cpu].tss_vaddr = (uint64_t)&initial_tss[current_starting_cpu]; in smp_init()
106 memset(&initial_tss[current_starting_cpu], 0, sizeof(struct tss_struct)); in smp_init()
[all …]