Skip to content

Commit ec44a25

Browse files
Nick Bofferdingdcrowell77
authored andcommitted
Invert polarity of secure jumper bit
Change-Id: I58b67d83225bd72a25b275cca61845719dfb1245 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35803 Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
1 parent 39922df commit ec44a25

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/usr/secureboot/base/settings.C

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,14 @@ namespace SECUREBOOT
100100
{
101101
break;
102102
}
103+
104+
// If the "Secure Mode Disable" (SMD) bit is 0b1 in the CBS
105+
// Control/Status register, hardware security is deasserted;
106+
// otherwise (0b0), hardware security is asserted
103107
o_state = (l_regValue &
104108
static_cast<uint64_t>(ProcCbsControl::JumperStateBit)) ?
105-
SecureJumperState::SECURITY_ASSERTED :
106-
SecureJumperState::SECURITY_DEASSERTED;
109+
SecureJumperState::SECURITY_DEASSERTED :
110+
SecureJumperState::SECURITY_ASSERTED;
107111

108112
SB_INF("getJumperState() state:%i huid:%.8X", o_state,
109113
get_huid(i_targ));

0 commit comments

Comments
 (0)