Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: firmware/lib/vboot_firmware.c

Issue 2865015: Add boot flags to LoadFirmware(), for TPM init (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « firmware/include/load_firmware_fw.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/lib/vboot_firmware.c
diff --git a/firmware/lib/vboot_firmware.c b/firmware/lib/vboot_firmware.c
index 1b401ba706811cb63ab7d8be1aa0fecade80a510..11ea6f7772e1c78d9cf8e48ed8f9c5624814be89 100644
--- a/firmware/lib/vboot_firmware.c
+++ b/firmware/lib/vboot_firmware.c
@@ -60,8 +60,9 @@ int LoadFirmware(LoadFirmwareParams* params) {
}
/* Initialize the TPM and read rollback indices. */
- /* TODO: fix SetupTPM parameter for developer mode */
- if (0 != RollbackFirmwareSetup(0, &tpm_key_version, &tpm_fw_version)) {
+ if (0 != RollbackFirmwareSetup(
+ (params->boot_flags & BOOT_FLAG_DEVELOPER ? 1 : 0),
+ &tpm_key_version, &tpm_fw_version)) {
VBDEBUG(("Unable to get stored versions.\n"));
return LOAD_FIRMWARE_RECOVERY;
}
« no previous file with comments | « firmware/include/load_firmware_fw.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698