Changes in kernel/arch/ia32/src/smp/smp.c [9d58539:49e6c6b4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/smp/smp.c
r9d58539 r49e6c6b4 55 55 #include <memstr.h> 56 56 #include <arch/drivers/i8259.h> 57 #include <cpu.h> 57 58 58 59 #ifdef CONFIG_SMP … … 77 78 io_apic = (uint32_t *) km_map((uintptr_t) io_apic, PAGE_SIZE, 78 79 PAGE_WRITE | PAGE_NOT_CACHEABLE); 80 } 81 } 82 83 static void cpu_arch_id_init(void) 84 { 85 ASSERT(ops != NULL); 86 ASSERT(cpus != NULL); 87 88 for (unsigned int i = 0; i < config.cpu_count; ++i) { 89 cpus[i].arch.id = ops->cpu_apic_id(i); 79 90 } 80 91 } … … 92 103 93 104 ASSERT(ops != NULL); 105 106 /* 107 * SMP initialized, cpus array allocated. Assign each CPU its 108 * physical APIC ID. 109 */ 110 cpu_arch_id_init(); 94 111 95 112 /*
Note:
See TracChangeset
for help on using the changeset viewer.