]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Amend r357367 by using register values from the TPM datasheet.
authordim <dim@FreeBSD.org>
Sat, 1 Feb 2020 21:43:45 +0000 (21:43 +0000)
committerdim <dim@FreeBSD.org>
Sat, 1 Feb 2020 21:43:45 +0000 (21:43 +0000)
commitc6caa5cb11f73b7183cad93c97d0663850227761
tree2f2b0b3c61bc257b40b13006acf4b37763df6c63
parent609d31f8f4c4dbd0349ab3654f70d4204e2838df
Amend r357367 by using register values from the TPM datasheet.

As Ian Lepore noted, writing ~1 to a register might have a completely
different effect than doing a regular read-modify-write operation.

Follow the TCG_PC_Client_Platform_TPM_Profile_PTP_2.0_r1.03_v22
datasheet instead, and use the actual values mentioned there:
(uint32_t)1 to cancel the command, (uint32_t)0 to clear the field.

MFC after: 3 days
sys/dev/tpm/tpm_crb.c