summaryrefslogtreecommitdiffstats
path: root/src/cpu/x86
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/mp_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index 61512ee0382f..952682497629 100644
--- a/src/cpu/x86/mp_init.c
+++ b/src/cpu/x86/mp_init.c
@@ -665,12 +665,12 @@ static void mp_initialize_cpu(void)
}
/* Returns APIC id for coreboot CPU number or < 0 on failure. */
-static int mp_get_apic_id(int cpu_slot)
+int mp_get_apic_id(int logical_cpu)
{
- if (cpu_slot >= CONFIG_MAX_CPUS || cpu_slot < 0)
+ if (logical_cpu >= CONFIG_MAX_CPUS || logical_cpu < 0)
return -1;
- return cpus[cpu_slot].default_apic_id;
+ return cpus[logical_cpu].default_apic_id;
}
void smm_initiate_relocation_parallel(void)