[coreboot-gerrit] Change in coreboot[master]: arch/x86: Enable ebda library for romstage and postcar

Subrata Banik (Code Review) gerrit at coreboot.org
Mon Sep 4 15:34:40 CEST 2017


Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/21388


Change subject: arch/x86: Enable ebda library for romstage and postcar
......................................................................

arch/x86: Enable ebda library for romstage and postcar

This patch provides a kconfig option as EARLY_EBDA_INIT to
ensures user can make use of EBDA library even during early
boot stages like romstage, postcar.

Change-Id: I603800a531f56b6ebd460d5951c35a645fbfe492
Signed-off-by: Subrata Banik <subrata.banik at intel.com>
---
M src/arch/x86/Kconfig
M src/arch/x86/Makefile.inc
2 files changed, 10 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/88/21388/1

diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index dbfb881..0da44bd 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -131,6 +131,14 @@
 	help
 	  Increase this value if preram cbmem console is getting truncated
 
+config EARLY_EBDA_INIT
+	bool "Initialize EBDA area early in romstage"
+	default n
+	help
+	  Initialize BIOS EBDA area early in romstage to allow bootloader to
+	  use this region for storing data which can be available across
+	  various stages.
+
 config PC80_SYSTEM
 	bool
 	default y if ARCH_X86
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index 5f184c5..4f84b28 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -209,6 +209,7 @@
 romstage-y += cbmem.c
 romstage-y += cbfs_and_run.c
 romstage-$(CONFIG_ARCH_RAMSTAGE_X86_32) += cpu_common.c
+romstage-$(CONFIG_EARLY_EBDA_INIT) += ebda.c
 romstage-y += memcpy.c
 romstage-y += memmove.c
 romstage-y += memset.c
@@ -281,6 +282,7 @@
 postcar-y += boot.c
 postcar-y += cbfs_and_run.c
 postcar-y += cpu_common.c
+postcar-$(CONFIG_EARLY_EBDA_INIT) += ebda.c
 postcar-y += exit_car.S
 postcar-y += memcpy.c
 postcar-y += memmove.c

-- 
To view, visit https://review.coreboot.org/21388
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I603800a531f56b6ebd460d5951c35a645fbfe492
Gerrit-Change-Number: 21388
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/20170904/8f9eb084/attachment.html>


More information about the coreboot-gerrit mailing list