summaryrefslogtreecommitdiff
path: root/src/include/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/include/cpu
parent78c919bdc87bf4ad7fd39b90b9b0cd3ee33ec494 (diff)
downloadcoreboot-befa72b208c5506180d8185e9d155f511fdffda4.tar.xz
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/include/cpu')
-rw-r--r--src/include/cpu/x86/mp.h3
1 files changed, 3 insertions, 0 deletions
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.
*/