Iru Cai (mytbk920423@gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14208
-gerrit
commit e91f886e548d11af571bfa5c2d952a4b07c44c2e Author: Iru Cai mytbk920423@gmail.com Date: Thu Mar 31 15:32:25 2016 +0800
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@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 c153a74..6ad142a 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),