| 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 * High-level firmware API for loading and verifying rewritable firmware. | 5 * High-level firmware API for loading and verifying rewritable firmware. |
| 6 * (Firmware portion) | 6 * (Firmware portion) |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "load_firmware_fw.h" | 9 #include "load_firmware_fw.h" |
| 10 #include "rollback_index.h" | 10 #include "rollback_index.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 /* Lock Firmware TPM rollback indices from further writes. In | 200 /* Lock Firmware TPM rollback indices from further writes. In |
| 201 * this design, this is done by setting the globalLock bit, which | 201 * this design, this is done by setting the globalLock bit, which |
| 202 * is cleared only by TPM_Init at reboot. */ | 202 * is cleared only by TPM_Init at reboot. */ |
| 203 if (0 != LockFirmwareVersions()) | 203 if (0 != LockFirmwareVersions()) |
| 204 return LOAD_FIRMWARE_RECOVERY; | 204 return LOAD_FIRMWARE_RECOVERY; |
| 205 } | 205 } |
| 206 | 206 |
| 207 /* If we're still here, no good firmware, so go to recovery mode. */ | 207 /* If we're still here, no good firmware, so go to recovery mode. */ |
| 208 return LOAD_FIRMWARE_RECOVERY; | 208 return LOAD_FIRMWARE_RECOVERY; |
| 209 } | 209 } |
| OLD | NEW |