mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-25 18:55:24 +00:00
Add missing TPM constant and fix test code.
Review URL: http://codereview.chromium.org/2320001
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user