]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix obtaining RSP address in TPM CRB for non-amd64 platforms
authormw <mw@FreeBSD.org>
Thu, 20 Dec 2018 01:05:09 +0000 (01:05 +0000)
committermw <mw@FreeBSD.org>
Thu, 20 Dec 2018 01:05:09 +0000 (01:05 +0000)
commit2c446c8b9b5c5c8eafd8731d2310f7f87dd55633
tree502a3373bd53cef4503fda977a36eaf9170d2709
parent3b19b840c284379d1beeecd9837d466676ca8113
Fix obtaining RSP address in TPM CRB for non-amd64 platforms

On amd64 the RSP address can be read in single 8-byte transaction,
which is obviously not possible on 32-bit platforms. Fix that
by performing 2 4-byte read on them.

Obtained from: Semihalf
Sponsored by: Stormshield
sys/dev/tpm/tpm20.h
sys/dev/tpm/tpm_crb.c