From 7e0d574dff8853e61634f42acbcb3604dd03cc23 Mon Sep 17 00:00:00 2001 From: Ilya Smirnov Date: Wed, 6 Jun 2018 14:49:37 -0500 Subject: 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 Reviewed-by: Nicholas E. Bofferding Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Michael Baiocchi Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/lib/utilmisc.C | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/lib') 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; +} }; -- cgit v1.2.1