[coreboot-gerrit] Change in coreboot[master]: cpu/x86: Make mp_get_apic_id() function externally available

Subrata Banik (Code Review) gerrit at coreboot.org
Wed Apr 11 15:23:15 CEST 2018


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 at 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_ */

-- 
To view, visit https://review.coreboot.org/25620
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5c5eda8325f941ab84d8a3fe0dae64be71c44855
Gerrit-Change-Number: 25620
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180411/77876b91/attachment.html>


More information about the coreboot-gerrit mailing list