| OLD | NEW |
| 1 #include <stdio.h> | 1 #include <stdio.h> |
| 2 | 2 |
| 3 #include "cgptlib.h" | 3 #include "cgptlib.h" |
| 4 #include "firmware_image_fw.h" | 4 #include "firmware_image_fw.h" |
| 5 #include "kernel_image_fw.h" | 5 #include "kernel_image_fw.h" |
| 6 #include "load_firmware_fw.h" | 6 #include "load_firmware_fw.h" |
| 7 #include "load_kernel_fw.h" | 7 #include "load_kernel_fw.h" |
| 8 #include "rollback_index.h" | 8 #include "rollback_index.h" |
| 9 #include "tlcl.h" | 9 #include "tlcl.h" |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 LoadKernel(0); | 41 LoadKernel(0); |
| 42 | 42 |
| 43 // rollback_index.h | 43 // rollback_index.h |
| 44 SetupTPM(); | 44 SetupTPM(); |
| 45 GetStoredVersions(0, &x, &y); | 45 GetStoredVersions(0, &x, &y); |
| 46 WriteStoredVersions(0, 0, 0); | 46 WriteStoredVersions(0, 0, 0); |
| 47 LockFirmwareVersions(); | 47 LockFirmwareVersions(); |
| 48 LockKernelVersionsByLockingPP(); | 48 LockKernelVersionsByLockingPP(); |
| 49 | 49 |
| 50 // tlcl.h | 50 // tlcl.h |
| 51 TlclLibinit(); | 51 TlclLibInit(); |
| 52 TlclStartup(); | 52 TlclStartup(); |
| 53 TlclSelftestfull(); | 53 TlclSelftestfull(); |
| 54 TlclContinueSelfTest(); |
| 54 TlclDefineSpace(0, 0, 0); | 55 TlclDefineSpace(0, 0, 0); |
| 55 TlclWrite(0, 0, 0); | 56 TlclWrite(0, 0, 0); |
| 56 TlclRead(0, 0, 0); | 57 TlclRead(0, 0, 0); |
| 57 TlclWriteLock(0); | 58 TlclWriteLock(0); |
| 58 TlclReadLock(0); | 59 TlclReadLock(0); |
| 59 TlclAssertPhysicalPresence(); | 60 TlclAssertPhysicalPresence(); |
| 60 TlclSetNvLocked(); | 61 TlclSetNvLocked(); |
| 61 TlclIsOwned(); | 62 TlclIsOwned(); |
| 62 TlclForceClear(); | 63 TlclForceClear(); |
| 63 TlclSetEnable(); | 64 TlclSetEnable(); |
| 64 TlclSetDeactivated(0); | 65 TlclSetDeactivated(0); |
| 65 TlclGetFlags(0, 0); | 66 TlclGetFlags(0, 0); |
| 66 | 67 |
| 67 return 0; | 68 return 0; |
| 68 } | 69 } |
| OLD | NEW |