[coreboot-gerrit] Patch set updated for coreboot: [RFC] add CONFIG_RESERVED_SPACE_BEFORE_RESET_VECTOR

Iru Cai (mytbk920423@gmail.com) gerrit at coreboot.org
Thu Jan 26 09:42:36 CET 2017


Iru Cai (mytbk920423 at gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14208

-gerrit

commit 8ee8150a09904f19fffdabbdd415b7b43069f2c0
Author: Iru Cai <mytbk920423 at gmail.com>
Date:   Thu Mar 31 15:32:25 2016 +0800

    [RFC] add CONFIG_RESERVED_SPACE_BEFORE_RESET_VECTOR
    
    HP Elitebook 2760p (and some other HP laptops) stores some data which
    may be used by EC in bootblock region. So some space needs to be
    reserved before the reset vector.
    
    Change-Id: I992d285a1a76883ff7a69445a0ff9efe62dbbd7f
    Signed-off-by: Iru Cai <mytbk920423 at gmail.com>
---
 src/arch/x86/Kconfig     | 4 ++++
 src/arch/x86/failover.ld | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index 6280024..1daddd9 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -181,6 +181,10 @@ config ID_SECTION_OFFSET
 	hex
 	default 0x80
 
+config RESERVED_SPACE_BEFORE_RESET_VECTOR
+	hex
+	default 0xf0
+
 # 64KiB default bootblock size when employing C_ENVIRONMENT_BOOTBLOCK.
 config C_ENV_BOOTBLOCK_SIZE
 	hex
diff --git a/src/arch/x86/failover.ld b/src/arch/x86/failover.ld
index e9613d9..a434704 100644
--- a/src/arch/x86/failover.ld
+++ b/src/arch/x86/failover.ld
@@ -50,8 +50,8 @@ SECTIONS
 	 * may cause the total size of a section to change when the start
 	 * address gets applied.
 	 */
-	ROMLOC_MIN = 0xffffff00 - (_erom - _rom + 16) -
-		(CONFIG_SIPI_VECTOR_IN_ROM ? 4096 : 0);
+	ROMLOC_MIN = 0xfffffff0 - CONFIG_RESERVED_SPACE_BEFORE_RESET_VECTOR
+		- (_erom - _rom + 16) - (CONFIG_SIPI_VECTOR_IN_ROM ? 4096 : 0);
 
 	/* Post-check proper SIPI vector. */
 	_bogus = ASSERT(!CONFIG_SIPI_VECTOR_IN_ROM || ((ap_sipi_vector & 0x0fff) == 0x0),



More information about the coreboot-gerrit mailing list