From befa72b208c5506180d8185e9d155f511fdffda4 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 11 Dec 2018 17:10:18 +0530 Subject: 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 Reviewed-on: https://review.coreboot.org/c/25620 Reviewed-by: Aamir Bohra Tested-by: build bot (Jenkins) --- src/include/cpu/x86/mp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include') 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. */ -- cgit v1.2.3