diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2017-01-11 16:18:58 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-02-01 17:27:23 -0500 |
commit | 6c700217953dc6dca3222716a9a3a34356f10da1 (patch) | |
tree | 245140c4918465e45ce0f2974eeb369299d63e62 /src/include/bootloader/bootloader.H | |
parent | 2e898b1a6eb2c8322e8b50a206464addecfd6734 (diff) | |
download | talos-hostboot-6c700217953dc6dca3222716a9a3a34356f10da1.tar.gz talos-hostboot-6c700217953dc6dca3222716a9a3a34356f10da1.zip |
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 <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/bootloader/bootloader.H')
-rw-r--r-- | src/include/bootloader/bootloader.H | 10 |
1 files changed, 8 insertions, 2 deletions
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)) |