From 6c700217953dc6dca3222716a9a3a34356f10da1 Mon Sep 17 00:00:00 2001 From: Stephen Cprek Date: Wed, 11 Jan 2017 16:18:58 -0600 Subject: Put HW keys' hash in HBBL and extract that out to verify code Change-Id: Ifb3193c43319b041d57727cdec4da57fa3c218a1 RTC:166847 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34758 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Nicholas E. Bofferding Tested-by: Jenkins OP Build CI Reviewed-by: Michael Baiocchi Reviewed-by: Martin Gloff Reviewed-by: Daniel M. Crowell --- src/include/bootloader/bootloader.H | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/include/bootloader') diff --git a/src/include/bootloader/bootloader.H b/src/include/bootloader/bootloader.H index 26f7f84df..ac10628fb 100644 --- a/src/include/bootloader/bootloader.H +++ b/src/include/bootloader/bootloader.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2016 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -166,7 +166,13 @@ namespace Bootloader{ * HBB is copied to its running location and its execution is started. */ - + /** Max size of HBBL without ECC. Must match PNOR layout for eyeCatch HBBL*/ +#define MAX_HBBL_SIZE (20 * KILOBYTE) + /** Size of exception vector reserved space at start of the HBBL section*/ +#define HBBL_EXCEPTION_VECTOR_SIZE (12 * KILOBYTE) + /** HW Keys hash is placed in the last 64 bytes of the HBBL */ +#define HW_KEYS_HASH_ADDR (getHRMOR() + HBBL_EXCEPTION_VECTOR_SIZE \ + + MAX_HBBL_SIZE - 64) /** Location of working copy of HBB with ECC */ #define HBB_ECC_WORKING_ADDR (getHRMOR() - ( 1*MEGABYTE)) -- cgit v1.2.3