Add missing TPM constant and fix test code.

Review URL: http://codereview.chromium.org/2320001
This commit is contained in:
Luigi Semenzato
2010-05-27 15:19:58 -07:00
parent 371df8bbbf
commit ded1cecd36
2 changed files with 5 additions and 3 deletions

View File

@@ -28,6 +28,7 @@
#define TPM_NV_INDEX_LOCK ((uint32_t)0xffffffff)
#define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14)
#define TPM_NV_PER_PPWRITE (((uint32_t)1)<<0)
#define TPM_NV_PER_GLOBALLOCK (((uint32_t)1)<<15)
typedef uint8_t TSS_BOOL;
typedef uint16_t TPM_STRUCTURE_TAG;

View File

@@ -38,7 +38,8 @@ int main(void)
SetupTPM();
GetStoredVersion(0);
WriteStoredVersion(0, 0);
LockStoredVersion(0);
LockFirmwareVersions();
LockKernelVersionsByLockingPP();
// tlcl.h
TlclLibinit();
@@ -53,8 +54,8 @@ int main(void)
TlclSetNvLocked();
TlclIsOwned();
TlclForceClear();
TlclPhysicalEnable();
TlclPhysicalSetDeactivated(0);
TlclSetEnable();
TlclSetDeactivated(0);
TlclGetFlags(0, 0);
return 0;