Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/25620
Change subject: cpu/x86: Make mp_get_apic_id() function externally available ......................................................................
cpu/x86: Make mp_get_apic_id() function externally available
This function convert cpu number to repective APIC id.
BUG=b:74436746 BRANCH=none TEST=mp_get_apic_id() can be accessed from other files now.
Change-Id: I5c5eda8325f941ab84d8a3fe0dae64be71c44855 Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/cpu/x86/mp_init.c M src/include/cpu/x86/mp.h 2 files changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/20/25620/1
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c index f99abaf..6d1ae26 100644 --- a/src/cpu/x86/mp_init.c +++ b/src/cpu/x86/mp_init.c @@ -679,7 +679,7 @@ }
/* 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 cpu_slot) { if (cpu_slot >= CONFIG_MAX_CPUS || cpu_slot < 0) return -1; diff --git a/src/include/cpu/x86/mp.h b/src/include/cpu/x86/mp.h index f6afc84..bc9cf05 100644 --- a/src/include/cpu/x86/mp.h +++ b/src/include/cpu/x86/mp.h @@ -153,4 +153,7 @@ /* Release a barrier so that other CPUs waiting for that barrier can continue */ void release_barrier(atomic_t *b);
+/* Returns APIC id for coreboot CPU number or < 0 on failure. */ +int mp_get_apic_id(int cpu_slot); + #endif /* _X86_MP_H_ */