Add recovery mode protection to new NVRAM locking scheme.

Also fix the TPM initialization.

Review URL: http://codereview.chromium.org/2344002
This commit is contained in:
Luigi Semenzato
2010-05-28 10:34:31 -07:00
parent 262668fcf3
commit 52a8d2df06
7 changed files with 187 additions and 113 deletions

View File

@@ -24,6 +24,8 @@
#define TPM_LARGE_ENOUGH_COMMAND_SIZE 256 /* saves space in the firmware */
#define TPM_SUCCESS ((uint32_t)0x00000000)
#define TPM_E_BADINDEX ((uint32_t)0x00000002)
#define TPM_NV_INDEX0 ((uint32_t)0x00000000)
#define TPM_NV_INDEX_LOCK ((uint32_t)0xffffffff)
#define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14)