<p>Subrata Banik has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/25620">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cpu/x86: Make mp_get_apic_id() function externally available<br><br>This function convert cpu number to repective APIC id.<br><br>BUG=b:74436746<br>BRANCH=none<br>TEST=mp_get_apic_id() can be accessed from other files now.<br><br>Change-Id: I5c5eda8325f941ab84d8a3fe0dae64be71c44855<br>Signed-off-by: Subrata Banik <subrata.banik@intel.com><br>---<br>M src/cpu/x86/mp_init.c<br>M src/include/cpu/x86/mp.h<br>2 files changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/20/25620/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c</span><br><span>index f99abaf..6d1ae26 100644</span><br><span>--- a/src/cpu/x86/mp_init.c</span><br><span>+++ b/src/cpu/x86/mp_init.c</span><br><span>@@ -679,7 +679,7 @@</span><br><span> }</span><br><span> </span><br><span> /* Returns APIC id for coreboot CPU number or < 0 on failure. */</span><br><span style="color: hsl(0, 100%, 40%);">-static int mp_get_apic_id(int cpu_slot)</span><br><span style="color: hsl(120, 100%, 40%);">+int mp_get_apic_id(int cpu_slot)</span><br><span> {</span><br><span>       if (cpu_slot >= CONFIG_MAX_CPUS || cpu_slot < 0)</span><br><span>               return -1;</span><br><span>diff --git a/src/include/cpu/x86/mp.h b/src/include/cpu/x86/mp.h</span><br><span>index f6afc84..bc9cf05 100644</span><br><span>--- a/src/include/cpu/x86/mp.h</span><br><span>+++ b/src/include/cpu/x86/mp.h</span><br><span>@@ -153,4 +153,7 @@</span><br><span> /* Release a barrier so that other CPUs waiting for that barrier can continue */</span><br><span> void release_barrier(atomic_t *b);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Returns APIC id for coreboot CPU number or < 0 on failure. */</span><br><span style="color: hsl(120, 100%, 40%);">+int mp_get_apic_id(int cpu_slot);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> #endif /* _X86_MP_H_ */</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/25620">change 25620</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/25620"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5c5eda8325f941ab84d8a3fe0dae64be71c44855 </div>
<div style="display:none"> Gerrit-Change-Number: 25620 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Subrata Banik <subrata.banik@intel.com> </div>