summaryrefslogtreecommitdiffstats
path: root/src/lib
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/lib
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/lib')
-rw-r--r--src/lib/utilmisc.C13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/utilmisc.C b/src/lib/utilmisc.C
index d91af9bc1..36f568d11 100644
--- a/src/lib/utilmisc.C
+++ b/src/lib/utilmisc.C
@@ -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,17 @@ void setIsTargetingLoaded()
g_isTargetingLoaded = true;
}
+static bool g_isConsoleStarted = false;
+
+bool isConsoleStarted()
+{
+ return g_isConsoleStarted;
+}
+
+void setIsConsoleStarted()
+{
+ g_isConsoleStarted = true;
+}
};
OpenPOWER on IntegriCloud