Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34797 )
Change subject: soc/intel/common/smm: Remove redundant masking op
......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/34797/1/src/soc/intel/common/block/...
File src/soc/intel/common/block/smm/smitraphandler.c:
https://review.coreboot.org/c/coreboot/+/34797/1/src/soc/intel/common/block/...
PS1, Line 109: data =
Coverity will likely complain now that this assignment isn't used, which makes me wonder why pcr_rea […]
Hm, that's a good point. What do you think about:
(void)pcr_read32(PID_PSTH, PCR_PSTH_TRPD);
possibly in both places?
Because pcr_read32 calls read32 which takes a volatile pointer, the compiler *shouldn't* optimize it away. The (void) makes it clear this action is done purely for its side-effects.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/34797
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I71da74e5e08e7d7e6d61c1925db19324efd73f0a
Gerrit-Change-Number: 34797
Gerrit-PatchSet: 3
Gerrit-Owner: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Lijian Zhao
lijian.zhao@intel.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Subrata Banik
subrata.banik@intel.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Jacob Garber
jgarber1@ualberta.ca
Gerrit-Comment-Date: Thu, 08 Aug 2019 20:26:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Jacob Garber
jgarber1@ualberta.ca
Gerrit-MessageType: comment