summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2018-12-11 17:10:18 +0530
committerSubrata Banik <subrata.banik@intel.com>2018-12-15 04:20:27 +0000
commitbefa72b208c5506180d8185e9d155f511fdffda4 (patch)
tree4d6093b10006fb5ff2cd4af1ef412e77371755d9 /src/cpu
parent78c919bdc87bf4ad7fd39b90b9b0cd3ee33ec494 (diff)
cpu/x86: Make mp_get_apic_id() function externally available
This function returns APIC id for respective cpu core. BUG=b:74436746 BRANCH=none TEST=mp_get_apic_id() can be accessed in other files now. Change-Id: I5c5eda8325f941ab84d8a3fe0dae64be71c44855 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/25620 Reviewed-by: Aamir Bohra <aamir.bohra@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu')
-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 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)