<p>Subrata Banik has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21389">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">device: Skip EBDA area reinitialization if CONFIG_EARLY_EBDA_INIT selected<br><br>CONFIG_EARLY_EBDA_INIT kconfig will ensure EBDA area getting<br>initialized during romstage.<br><br>This patch ensures that dev_initializa() shouldn't<br>override already initialized EBDA area, hence just skip<br>reinitialization part based on kconfig option.<br><br>Change-Id: I797933b9a6aea21793b3f19e45dde0ba9d536370<br>Signed-off-by: Subrata Banik <subrata.banik@intel.com><br>---<br>M src/device/device.c<br>1 file changed, 7 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/21389/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/device/device.c b/src/device/device.c<br>index 35f5909..4c6b6f9 100644<br>--- a/src/device/device.c<br>+++ b/src/device/device.c<br>@@ -1179,8 +1179,13 @@<br>        printk(BIOS_INFO, "Initializing devices...\n");<br> <br> #if IS_ENABLED(CONFIG_ARCH_X86)<br>-       /* Ensure EBDA is prepared before Option ROMs. */<br>-    setup_default_ebda();<br>+        /*<br>+    * Initialize EBDA area in ramstage if early<br>+  * initialization is not done.<br>+        */<br>+  if (!IS_ENABLED(CONFIG_EARLY_EBDA_INIT))<br>+             /* Ensure EBDA is prepared before Option ROMs. */<br>+            setup_default_ebda();<br> #endif<br> <br>     /* First call the mainboard init. */<br></pre><p>To view, visit <a href="https://review.coreboot.org/21389">change 21389</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/21389"/><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: I797933b9a6aea21793b3f19e45dde0ba9d536370 </div>
<div style="display:none"> Gerrit-Change-Number: 21389 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Subrata Banik <subrata.banik@intel.com> </div>