Home
last modified time | relevance | path

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

/DragonOS-0.1.3/kernel/src/smp/
Dsmp.c19 int current_starting_cpu = 0; variable
78 current_starting_cpu = proc_local_apic_structs[i]->ACPI_Processor_UID; in smp_init()
81 … cpu_core_info[current_starting_cpu].stack_start = (uint64_t)kmalloc(STACK_SIZE, 0) + STACK_SIZE; in smp_init()
82 …cpu_core_info[current_starting_cpu].ist_stack_start = (uint64_t)(kmalloc(STACK_SIZE, 0)) + STACK_S… in smp_init()
84 memset((void *)cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
85 … memset((void *)cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
89 …((struct process_control_block *)(cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE))->… in smp_init()
91 …((struct process_control_block *)(cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE… in smp_init()
94 … cpu_core_info[current_starting_cpu].tss_vaddr = (uint64_t)&initial_tss[current_starting_cpu]; in smp_init()
96 memset(&initial_tss[current_starting_cpu], 0, sizeof(struct tss_struct)); in smp_init()
[all …]