<p>Pratikkumar V Prajapati has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21061">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">intel/common/cpu: Add function to get microcode patch pointer<br><br>Add mp_current_microcode() function to get the microcode patch pointer.<br>Use this function to avoid reading the microcode patch from the boot<br>media. init_cpus() would initialize microcode_patch global variable to<br>point to microcode patch in boot media and this function can be used<br>to access the pointer.<br><br>Change-Id: Ia71395f4e5b2b4fcd4e4660b66e8beb99eda65b8<br>Signed-off-by: Pratik Prajapati <pratikkumar.v.prajapati@intel.com><br>---<br>M src/soc/intel/common/block/cpu/mp_init.c<br>M src/soc/intel/common/block/include/intelblocks/mp_init.h<br>2 files changed, 20 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/61/21061/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/intel/common/block/cpu/mp_init.c b/src/soc/intel/common/block/cpu/mp_init.c<br>index fd8b5db..5bbbb2c 100644<br>--- a/src/soc/intel/common/block/cpu/mp_init.c<br>+++ b/src/soc/intel/common/block/cpu/mp_init.c<br>@@ -93,6 +93,17 @@<br> }<br> <br> /*<br>+ * Function to get the microcode patch pointer. Use this function to avoid<br>+ * reading the microcode patch from the boot media. init_cpus() would<br>+ * initialize microcode_patch global variable to point to microcode patch<br>+ * in boot media and this function can be used to access the pointer.<br>+ */<br>+const void *intel_mp_current_microcode(void)<br>+{<br>+       return microcode_patch;<br>+}<br>+<br>+/*<br>  * MP Init callback function(get_microcode_info) to find the Microcode at<br>  * Pre MP Init phase. This function is common among all SOCs and thus its in<br>  * Common CPU block.<br>@@ -102,7 +113,7 @@<br>  */<br> void get_microcode_info(const void **microcode, int *parallel)<br> {<br>-        *microcode =microcode_patch;<br>+ *microcode = intel_mp_current_microcode();<br>    *parallel = 1;<br> }<br> <br>diff --git a/src/soc/intel/common/block/include/intelblocks/mp_init.h b/src/soc/intel/common/block/include/intelblocks/mp_init.h<br>index 1e5531c..d123207 100644<br>--- a/src/soc/intel/common/block/include/intelblocks/mp_init.h<br>+++ b/src/soc/intel/common/block/include/intelblocks/mp_init.h<br>@@ -43,6 +43,14 @@<br> int get_cpu_count(void);<br> <br> /*<br>+ * Function to get the microcode patch pointer. Use this function to avoid<br>+ * reading the microcode patch from the boot media. init_cpus() would<br>+ * initialize microcode_patch global variable to point to microcode patch<br>+ * in boot media and this function can be used to access the pointer.<br>+ */<br>+const void *intel_mp_current_microcode(void);<br>+<br>+/*<br>  * MP Init callback function(get_microcode_info) to find the Microcode at<br>  * Pre MP Init phase. This function is common among all SOCs and thus its in<br>  * Common CPU block.<br></pre><p>To view, visit <a href="https://review.coreboot.org/21061">change 21061</a>. To unsubscribe, 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/21061"/><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: Ia71395f4e5b2b4fcd4e4660b66e8beb99eda65b8 </div>
<div style="display:none"> Gerrit-Change-Number: 21061 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pratikkumar V Prajapati <pratikkumar.v.prajapati@intel.com> </div>