summaryrefslogtreecommitdiffstats
path: root/src/include/util
diff options
context:
space:
mode:
authorIlya Smirnov <ismirno@us.ibm.com>2018-06-06 14:49:37 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-06-19 17:36:31 -0400
commit7e0d574dff8853e61634f42acbcb3604dd03cc23 (patch)
tree45e967918f9830a7a5f0b58ceb0008435d681e83 /src/include/util
parentc7384e829f3dec35cbdf3a18dba432c8fcd1c069 (diff)
downloadtalos-hostboot-7e0d574dff8853e61634f42acbcb3604dd03cc23.tar.gz
talos-hostboot-7e0d574dff8853e61634f42acbcb3604dd03cc23.zip
New Global For Console Daemon
This change implements a new global variable that indicates whether the console daemon has been started. This variable is checked in the doShutdown path prior to printing any console traces. There may be a situation very early in the IPL where we attempt to write to console before the console daemon has been started. This causes timeouts and IPL failures. Change-Id: Ibec90d2207e5db9ef3b9507503d1ea9e2eb7cf6d CQ: SW431130 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60060 Tested-by: Jenkins Server <pfd-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> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/util')
-rw-r--r--src/include/util/misc.H16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/include/util/misc.H b/src/include/util/misc.H
index 78d17f591..56592a7f8 100644
--- a/src/include/util/misc.H
+++ b/src/include/util/misc.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2017 */
+/* Contributors Listed Below - COPYRIGHT 2014,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -55,6 +55,20 @@ namespace Util
* @return N/A
*/
void setIsTargetingLoaded( void );
+
+ /**
+ * @brief Determines if the Console daemon has been started
+ *
+ * @return bool true if Console daemon has been started; false otherwise
+ */
+ bool isConsoleStarted();
+
+ /**
+ * @brief Sets the global variable to indicate that the Console daemon has
+ * been started. This should only be called once when the console
+ * daemon starts.
+ */
+ void setIsConsoleStarted();
};
#endif
OpenPOWER on IntegriCloud