summaryrefslogtreecommitdiffstats
path: root/src/include/bootloader/bootloader.H
diff options
context:
space:
mode:
authorStephen Cprek <smcprek@us.ibm.com>2017-01-11 16:18:58 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-02-01 17:27:23 -0500
commit6c700217953dc6dca3222716a9a3a34356f10da1 (patch)
tree245140c4918465e45ce0f2974eeb369299d63e62 /src/include/bootloader/bootloader.H
parent2e898b1a6eb2c8322e8b50a206464addecfd6734 (diff)
downloadtalos-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.H10
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))
OpenPOWER on IntegriCloud