aboutsummaryrefslogtreecommitdiff
path: root/src/device/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/device.c')
-rw-r--r--src/device/device.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/device/device.c b/src/device/device.c
index 35f5909c6f..4c6b6f94a9 100644
--- a/src/device/device.c
+++ b/src/device/device.c
@@ -1179,8 +1179,13 @@ void dev_initialize(void)
printk(BIOS_INFO, "Initializing devices...\n");
#if IS_ENABLED(CONFIG_ARCH_X86)
- /* Ensure EBDA is prepared before Option ROMs. */
- setup_default_ebda();
+ /*
+ * Initialize EBDA area in ramstage if early
+ * initialization is not done.
+ */
+ if (!IS_ENABLED(CONFIG_EARLY_EBDA_INIT))
+ /* Ensure EBDA is prepared before Option ROMs. */
+ setup_default_ebda();
#endif
/* First call the mainboard init. */