| 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_kernel_fw.h" | 6 #include "load_kernel_fw.h" |
| 7 #include "rollback_index.h" | 7 #include "rollback_index.h" |
| 8 #include "tlcl.h" | 8 #include "tlcl.h" |
| 9 | 9 |
| 10 int main(void) | 10 int main(void) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // kernel_image_fw.h | 25 // kernel_image_fw.h |
| 26 VerifyKernelKeyHeader(0, 0, 0, 0, 0, 0); | 26 VerifyKernelKeyHeader(0, 0, 0, 0, 0, 0); |
| 27 VerifyKernelPreamble(0, 0, 0, 0); | 27 VerifyKernelPreamble(0, 0, 0, 0); |
| 28 VerifyKernelData(0, 0, 0, 0, 0); | 28 VerifyKernelData(0, 0, 0, 0, 0); |
| 29 VerifyKernelHeader(0, 0, 0, 0, 0, 0); | 29 VerifyKernelHeader(0, 0, 0, 0, 0, 0); |
| 30 VerifyKernel(0, 0, 0); | 30 VerifyKernel(0, 0, 0); |
| 31 GetLogicalKernelVersion(0); | 31 GetLogicalKernelVersion(0); |
| 32 VerifyKernelDriver_f(0, 0, 0, 0); | 32 VerifyKernelDriver_f(0, 0, 0, 0); |
| 33 | 33 |
| 34 // load_kernel_fw.h | 34 // load_kernel_fw.h |
| 35 // FIXME: LoadKernel(0); | 35 LoadKernel(0); |
| 36 | 36 |
| 37 // rollback_index.h | 37 // rollback_index.h |
| 38 SetupTPM(); | 38 SetupTPM(); |
| 39 GetStoredVersion(0); | 39 GetStoredVersion(0); |
| 40 WriteStoredVersion(0, 0); | 40 WriteStoredVersion(0, 0); |
| 41 LockFirmwareVersions(); | 41 LockFirmwareVersions(); |
| 42 LockKernelVersionsByLockingPP(); | 42 LockKernelVersionsByLockingPP(); |
| 43 | 43 |
| 44 // tlcl.h | 44 // tlcl.h |
| 45 TlclLibinit(); | 45 TlclLibinit(); |
| 46 TlclStartup(); | 46 TlclStartup(); |
| 47 TlclSelftestfull(); | 47 TlclSelftestfull(); |
| 48 TlclDefineSpace(0, 0, 0); | 48 TlclDefineSpace(0, 0, 0); |
| 49 TlclWrite(0, 0, 0); | 49 TlclWrite(0, 0, 0); |
| 50 TlclRead(0, 0, 0); | 50 TlclRead(0, 0, 0); |
| 51 TlclWriteLock(0); | 51 TlclWriteLock(0); |
| 52 TlclReadLock(0); | 52 TlclReadLock(0); |
| 53 TlclAssertPhysicalPresence(); | 53 TlclAssertPhysicalPresence(); |
| 54 TlclSetNvLocked(); | 54 TlclSetNvLocked(); |
| 55 TlclIsOwned(); | 55 TlclIsOwned(); |
| 56 TlclForceClear(); | 56 TlclForceClear(); |
| 57 TlclSetEnable(); | 57 TlclSetEnable(); |
| 58 TlclSetDeactivated(0); | 58 TlclSetDeactivated(0); |
| 59 TlclGetFlags(0, 0); | 59 TlclGetFlags(0, 0); |
| 60 | 60 |
| 61 return 0; | 61 return 0; |
| 62 } | 62 } |
| OLD | NEW |