[coreboot-gerrit] Change in coreboot[master]: arch/x86: Share storage data structures between early stages

Lee Leahy (Code Review) gerrit at coreboot.org
Sat Apr 15 02:12:45 CEST 2017


Lee Leahy has uploaded a new change for review. ( https://review.coreboot.org/19300 )

Change subject: arch/x86: Share storage data structures between early stages
......................................................................

arch/x86: Share storage data structures between early stages

Define a common area in CAR so that the storage data structures can be
shared between stages.

TEST=Build and run on Reef

Change-Id: I20a01b850a31df9887a428bf07ca476c8410d33e
Signed-off-by: Lee Leahy <Leroy.P.Leahy at intel.com>
---
M src/arch/x86/Kconfig
M src/arch/x86/car.ld
2 files changed, 10 insertions(+), 0 deletions(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/00/19300/1

diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index 0c8b97d..178f631 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -241,3 +241,8 @@
 	  Set to allow the payload to control normal/fallback image recovery.
 	  Note that it is the responsibility of the payload to reset the
 	  normal boot bit to 1 after each successsful boot.
+
+# Allocate space in CAR to share the driver storage structures between stages
+config CAR_DRIVERS_STORAGE
+	bool
+	default n
diff --git a/src/arch/x86/car.ld b/src/arch/x86/car.ld
index aa579c3..c7c0f34 100644
--- a/src/arch/x86/car.ld
+++ b/src/arch/x86/car.ld
@@ -44,6 +44,11 @@
 	 * to reside in the migrated area (between _car_relocatable_data_start
 	 * and _car_relocatable_data_end). */
 	TIMESTAMP(., 0x100)
+#if IS_ENABLED(CONFIG_CAR_DRIVERS_STORAGE)
+	_car_drivers_storage_start = .;
+	. += 256;
+	_car_drivers_storage_end = .;
+#endif
 	/* _car_global_start and _car_global_end provide symbols to per-stage
 	 * variables that are not shared like the timestamp and the pre-ram
 	 * cbmem console. This is useful for clearing this area on a per-stage

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I20a01b850a31df9887a428bf07ca476c8410d33e
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Lee Leahy <leroy.p.leahy at intel.com>



More information about the coreboot-gerrit mailing list