OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 #include "cgptlib.h" | 6 #include "cgptlib.h" |
7 #include "load_firmware_fw.h" | 7 #include "load_firmware_fw.h" |
8 #include "load_kernel_fw.h" | 8 #include "load_kernel_fw.h" |
9 #include "rollback_index.h" | 9 #include "rollback_index.h" |
10 #include "tlcl.h" | 10 #include "tlcl.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 GptUpdateKernelEntry(0, 0); | 22 GptUpdateKernelEntry(0, 0); |
23 | 23 |
24 /* load_firmware_fw.h */ | 24 /* load_firmware_fw.h */ |
25 UpdateFirmwareBodyHash(0, 0, 0); | 25 UpdateFirmwareBodyHash(0, 0, 0); |
26 LoadFirmware(0); | 26 LoadFirmware(0); |
27 | 27 |
28 /* load_kernel_fw.h */ | 28 /* load_kernel_fw.h */ |
29 LoadKernel(0); | 29 LoadKernel(0); |
30 | 30 |
31 /* rollback_index.h */ | 31 /* rollback_index.h */ |
32 RollbackFirmwareSetup(0); | 32 RollbackFirmwareSetup(0, &x, &y); |
33 RollbackFirmwareRead(&x, &y); | |
34 RollbackFirmwareWrite(0, 0); | 33 RollbackFirmwareWrite(0, 0); |
35 RollbackFirmwareLock(); | 34 RollbackFirmwareLock(); |
36 RollbackKernelRecovery(0); | 35 RollbackKernelRecovery(0); |
37 RollbackKernelRead(&x, &y); | 36 RollbackKernelRead(&x, &y); |
38 RollbackKernelWrite(0, 0); | 37 RollbackKernelWrite(0, 0); |
39 RollbackKernelLock(); | 38 RollbackKernelLock(); |
40 | 39 |
41 /* tlcl.h */ | 40 /* tlcl.h */ |
42 TlclLibInit(); | 41 TlclLibInit(); |
43 TlclCloseDevice(); | 42 TlclCloseDevice(); |
(...skipping 28 matching lines...) Expand all Loading... |
72 PublicKeyCopy(0, 0); | 71 PublicKeyCopy(0, 0); |
73 PublicKeyToRSA(0); | 72 PublicKeyToRSA(0); |
74 VerifyData(0, 0, 0, 0); | 73 VerifyData(0, 0, 0, 0); |
75 VerifyDigest(0, 0, 0); | 74 VerifyDigest(0, 0, 0); |
76 KeyBlockVerify(0, 0, 0); | 75 KeyBlockVerify(0, 0, 0); |
77 VerifyFirmwarePreamble(0, 0, 0); | 76 VerifyFirmwarePreamble(0, 0, 0); |
78 VerifyKernelPreamble(0, 0, 0); | 77 VerifyKernelPreamble(0, 0, 0); |
79 | 78 |
80 return 0; | 79 return 0; |
81 } | 80 } |
OLD | NEW |