summaryrefslogtreecommitdiffstats
path: root/src/include/usr/errl
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2017-10-20 21:13:34 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2017-11-03 09:45:20 -0400
commit07d75753d59419ea6ba9ee3bd930e0aa8e7e7fd5 (patch)
tree78633da60312ff8cfd54807f787219036e976621 /src/include/usr/errl
parent47f275a6bd3b2104a82d9786122afd6fe25f05de (diff)
downloadtalos-hostboot-07d75753d59419ea6ba9ee3bd930e0aa8e7e7fd5.tar.gz
talos-hostboot-07d75753d59419ea6ba9ee3bd930e0aa8e7e7fd5.zip
Secure Boot: Enforce PNOR section component IDs
- In secure mode, bootloader will enforce that HBB component ID is set - In secure mode, Hostboot will enforce that PNOR component IDs are set Change-Id: I04f3bbc45417b3229003c56e1083e1fc31c01cd7 RTC: 179422 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48711 Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/usr/errl')
-rw-r--r--src/include/usr/errl/errlreasoncodes.H9
-rw-r--r--src/include/usr/errl/errludstring.H62
2 files changed, 65 insertions, 6 deletions
diff --git a/src/include/usr/errl/errlreasoncodes.H b/src/include/usr/errl/errlreasoncodes.H
index 1e7f2ea77..f9d03c246 100644
--- a/src/include/usr/errl/errlreasoncodes.H
+++ b/src/include/usr/errl/errlreasoncodes.H
@@ -62,7 +62,7 @@ namespace ERRORLOG
ERRL_LAST_ERR = ERRL_COMP_ID | 0xFF
};
- // Identifiers for ERRL user data sections.
+ // Identifiers for ERRL user data subsections.
enum errlUserDetailDataSubsection
{
ERRL_UDT_NOFORMAT = 0x00,
@@ -74,6 +74,13 @@ namespace ERRORLOG
ERRL_UDT_CALLOUT = 0x06,
ERRL_UDT_PRINTK = 0x07,
ERRL_UDT_SENSOR = 0x08,
+ ERRL_UDT_STRING_SET = 0x09,
+ };
+
+ // Identifiers for ERRL user data subsection versions
+ enum errlUserDetailDataSubsectionVersion
+ {
+ ERRL_UDT_STRING_SET_VER_1 = 0x01,
};
};
diff --git a/src/include/usr/errl/errludstring.H b/src/include/usr/errl/errludstring.H
index f8e4cd3d7..c3d8ecdee 100644
--- a/src/include/usr/errl/errludstring.H
+++ b/src/include/usr/errl/errludstring.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2017 */
+/* [+] 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. */
@@ -57,10 +59,60 @@ public:
*/
virtual ~ErrlUserDetailsString();
-private:
- // Disabled
- ErrlUserDetailsString(const ErrlUserDetailsString &);
- ErrlUserDetailsString & operator=(const ErrlUserDetailsString &);
+ private:
+
+ // Disable compiler provided default functions
+ ErrlUserDetailsString(
+ const ErrlUserDetailsString &);
+ ErrlUserDetailsString & operator=(
+ const ErrlUserDetailsString &);
+ ErrlUserDetailsString (
+ ErrlUserDetailsString&&) = delete;
+ ErrlUserDetailsString& operator = (
+ ErrlUserDetailsString&&) = delete;
+};
+
+/**
+ * @class ErrlUserDetailsStringSet
+ *
+ * @brief Adds multiple, tagged FFDC strings to an error log as user details
+ * data
+ */
+class ErrlUserDetailsStringSet : public ErrlUserDetails
+{
+
+ public:
+
+ /**
+ * @brief Constructor; creates the object
+ */
+ ErrlUserDetailsStringSet();
+
+ /**
+ * @brief Adds a new tagged string to the object's string cache
+ *
+ * @param[in] i_pDescriptionString Description of the string to add. Must
+ * not be nullptr or function will substitute an error message.
+ * @param[in] i_pString The string to add. Must not be nullptr or function
+ * will substitute an error message.
+ */
+ void add(const char* i_pDescriptionString,
+ const char* i_pString);
+
+ /**
+ * @brief Destructor
+ */
+ virtual ~ErrlUserDetailsStringSet();
+
+ // Disable compiler provided default functions
+ ErrlUserDetailsStringSet(
+ const ErrlUserDetailsStringSet&) = delete;
+ ErrlUserDetailsStringSet& operator=(
+ const ErrlUserDetailsStringSet&) = delete;
+ ErrlUserDetailsStringSet (
+ ErrlUserDetailsStringSet&&) = delete;
+ ErrlUserDetailsStringSet& operator = (
+ ErrlUserDetailsStringSet&&) = delete;
};
}
OpenPOWER on IntegriCloud