summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwas
diff options
context:
space:
mode:
authorStephen Cprek <smcprek@us.ibm.com>2014-11-14 14:39:53 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-02-02 13:37:42 -0600
commit67c5a1ebe73f81bca1bb6608bbb8f204f0f37fa8 (patch)
tree2770690ea72f29f51ff7db676178474a25b9ced0 /src/include/usr/hwas
parentf0d809efddca10be40e2e5b7a60e8c5106522c31 (diff)
downloadblackbird-hostboot-67c5a1ebe73f81bca1bb6608bbb8f204f0f37fa8.tar.gz
blackbird-hostboot-67c5a1ebe73f81bca1bb6608bbb8f204f0f37fa8.zip
Support for Redundant Copy of HB code in PNOR
- 2 TOC's per side - side, sideless, preserved, and readOnly tags - Determine which SEEPROM side HB booted from - Modify gaurd code to not run when gaurd section DNE Change-Id: I62dd27c9aa79c3111d27e647f1b66a7c938ad6e8 RTC:109398 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14629 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwas')
-rw-r--r--src/include/usr/hwas/hwasPlatDeconfigGard.H19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/include/usr/hwas/hwasPlatDeconfigGard.H b/src/include/usr/hwas/hwasPlatDeconfigGard.H
index 4b89353fd..c439a4215 100644
--- a/src/include/usr/hwas/hwasPlatDeconfigGard.H
+++ b/src/include/usr/hwas/hwasPlatDeconfigGard.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2015 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -30,6 +32,8 @@
#ifndef HWASPLATDECONFIGGARD_H_
#define HWASPLATDECONFIGGARD_H_
+#include <pnor/pnorif.H>
+
/**
* @brief Adapt common singleton declaration to specific platform
*
@@ -64,6 +68,19 @@ struct HBDeconfigGard
void *iv_pGardRecords; // Pointer to the GARD Records in PNOR
};
+/**
+ * @brief Gets iv_gardSectionInfo and sets it if first time called.
+ * Sets o_sectionInfo based on iv_gardSectionInfo for the caller
+ *
+ * @param[out] Guard PNOR section info
+ *
+ * @return errlHndl_t Error log handle, depending on config options will
+ * ignore error because no Guard section exists in PNOR
+ * (e.g. CONFIG_GOLDEN_PNOR_SIDE_SUPPORT)
+ *
+ */
+errlHndl_t getGardSectionInfo(PNOR::SectionInfo_t& o_sectionInfo);
+
} // namespace HWAS
#endif // HWASPLATDECONFIGGARD_H_
OpenPOWER on IntegriCloud