Home
last modified time | relevance | path

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

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