summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMike Baiocchi <mbaiocch@us.ibm.com>2017-06-16 10:19:54 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-06-19 09:52:22 -0400
commit4bef50f8d4c06d24013821943bd9fbf24edef288 (patch)
treec50a39ca25dddc80c58d7fcf3db7256f69750db4 /src/usr
parent331c3aae67d8a366dc750be9148d6bcc194b69cc (diff)
downloadtalos-hostboot-4bef50f8d4c06d24013821943bd9fbf24edef288.tar.gz
talos-hostboot-4bef50f8d4c06d24013821943bd9fbf24edef288.zip
Add SECUREBOOT::enabled() state to printk
This commit traces the setting of SECUREBOOT::enabled() to the kernel printk buffer for debug purposes. It also updates a trace to display the register value at the end. Change-Id: I3b9abe54b86e4a8c2399c09074bd41f2f7ae1c8b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41977 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-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: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/secureboot/base/settings.C6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/secureboot/base/settings.C b/src/usr/secureboot/base/settings.C
index ec86fe650..28c2728cc 100644
--- a/src/usr/secureboot/base/settings.C
+++ b/src/usr/secureboot/base/settings.C
@@ -33,6 +33,7 @@
#include <secureboot/settings.H>
#include <config.h>
#include <console/consoleif.H>
+#include <kernel/console.H>
// SECUREBOOT : General driver traces
#include "../common/securetrace.H"
@@ -67,6 +68,7 @@ namespace SECUREBOOT
static_cast<uint64_t>(ProcSecurity::SabBit)));
SB_INF("getEnabled() state:%i",iv_enabled);
+ printk("SECUREBOOT::enabled() state:%i\n", iv_enabled);
// Report if secure boot is disabled
#ifdef CONFIG_SECUREBOOT
@@ -158,8 +160,8 @@ namespace SECUREBOOT
auto l_errl = readSecurityRegister(i_pProc,
static_cast<uint64_t>(ProcSecurity::SwitchRegister),
o_regValue);
- SB_INF("getSecuritySwitch() err:%i reg:%.16llX huid:%.8X",
- !!l_errl, o_regValue, get_huid(i_pProc));
+ SB_INF("getSecuritySwitch() err_rc:%.4X huid:%.8X reg:%.16llX",
+ ERRL_GETRC_SAFE(l_errl), get_huid(i_pProc), o_regValue);
return l_errl;
}
OpenPOWER on IntegriCloud