Lines Matching refs:i
31 for (int i = 0; i < total_processor_num; ++i) in smp_init() local
34 proc_local_apic_structs[i] = (struct acpi_Processor_Local_APIC_Structure_t *)(tmp_vaddr[i]); in smp_init()
42 for (int i = 200; i < 210; ++i) in smp_init() local
43 set_intr_gate(i, 0, SMP_interrupt_table[i - 200]); in smp_init()
54 for (int i = 0; i < total_processor_num; ++i) // i从1开始,不初始化bsp in smp_init() local
59 kdebug("[core %d] acpi processor UID=%d, APIC ID=%d, flags=%#010lx", i, in smp_init()
60 … proc_local_apic_structs[i]->ACPI_Processor_UID, proc_local_apic_structs[i]->local_apic_id, in smp_init()
61 proc_local_apic_structs[i]->flags); in smp_init()
62 if (proc_local_apic_structs[i]->local_apic_id == 0) in smp_init()
67 … if (!((proc_local_apic_structs[i]->flags & 0x1) || (proc_local_apic_structs[i]->flags & 0x2))) in smp_init()
70 … kdebug("processor %d cannot be enabled.", proc_local_apic_structs[i]->ACPI_Processor_UID); in smp_init()
78 current_starting_cpu = proc_local_apic_structs[i]->ACPI_Processor_UID; in smp_init()
90 proc_local_apic_structs[i]->local_apic_id; in smp_init()
92 proc_local_apic_structs[i]->local_apic_id; in smp_init()
111 proc_local_apic_structs[i]->local_apic_id); in smp_init()
114 proc_local_apic_structs[i]->local_apic_id); in smp_init()
124 for (int i = 0; i < 256; ++i) in smp_init() local
127 *(ul *)(phys_2_virt(global_CR3) + i) = 0UL; in smp_init()