From d2c065d794cee00ff07f06d1909554df480b2111 Mon Sep 17 00:00:00 2001 From: Ilya Smirnov Date: Tue, 3 Jul 2018 13:33:36 -0500 Subject: Display Secure Mode Console Trace During Boot This change adds a trace to explicitly state the status of secure mode on the system. A message indicating the state of secure mode will be displayed on console early in the boot. Change-Id: Ie36249695a56838879d47a9de300ad58cd7b8feb CQ: SW424336 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/62305 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/usr/secureboot/base/settings.C | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/usr/secureboot') diff --git a/src/usr/secureboot/base/settings.C b/src/usr/secureboot/base/settings.C index 4ebb77dd1..2ecf45b4a 100644 --- a/src/usr/secureboot/base/settings.C +++ b/src/usr/secureboot/base/settings.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2013,2017 */ +/* Contributors Listed Below - COPYRIGHT 2013,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -98,7 +98,13 @@ namespace SECUREBOOT SB_INF("Booting in non-secure mode. " "CBS Control/Status Register (0x50001) = 0x%016llX, " "Security Switch Register (0x10005) = 0x%016llX.", - securitySwitchValue,cbsValue); + cbsValue, securitySwitchValue); + } + else + { + #ifdef CONFIG_CONSOLE + CONSOLE::displayf(SECURE_COMP_NAME, "Booting in secure mode."); + #endif } #endif } -- cgit v1.2.3