summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpu/x86/mp_init.c6
-rw-r--r--src/include/cpu/x86/mp.h3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index 61512ee038..9526824976 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)
diff --git a/src/include/cpu/x86/mp.h b/src/include/cpu/x86/mp.h
index c04252ec35..9789910b46 100644
--- a/src/include/cpu/x86/mp.h
+++ b/src/include/cpu/x86/mp.h
@@ -145,6 +145,9 @@ int mp_run_on_all_cpus(void (*func)(void *), void *arg, long expire_us);
*/
int mp_park_aps(void);
+/* Returns APIC id for coreboot CPU number or < 0 on failure. */
+int mp_get_apic_id(int logical_cpu);
+
/*
* SMM helpers to use with initializing CPUs.
*/