summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/x86/lapic/lapic_cpu_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/x86/lapic/lapic_cpu_init.c b/src/cpu/x86/lapic/lapic_cpu_init.c
index 3ad1f0a055..0f73e71331 100644
--- a/src/cpu/x86/lapic/lapic_cpu_init.c
+++ b/src/cpu/x86/lapic/lapic_cpu_init.c
@@ -291,6 +291,7 @@ int start_cpu(struct device *cpu)
info = (struct cpu_info *)stack_top;
info->index = index;
info->cpu = cpu;
+ cpu_add_map_entry(info->index);
thread_init_cpu_info_non_bsp(info);
/* Advertise the new stack and index to start_cpu */
@@ -549,6 +550,7 @@ void initialize_cpus(struct bus *cpu_bus)
/* Find the device structure for the boot CPU */
info->cpu = alloc_find_dev(cpu_bus, &cpu_path);
+ cpu_add_map_entry(info->index);
// why here? In case some day we can start core1 in amd_sibling_init
if (is_smp_boot())