HomeFreeBSD

Amend r357367 by using register values from the TPM datasheet.

Description

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

Details

Provenance
dimAuthored on
Parents
rS357387: cache: replace kern___getcwd with vn_getcwd
Branches
Unknown
Tags
Unknown