summaryrefslogtreecommitdiff
path: root/firmware/lib/mocked_rollback_index.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-05-17 13:26:05 -0700
committerGerrit <chrome-bot@google.com>2012-05-18 18:15:58 -0700
commitb75d8adcc01f08cf5a6d87b78aeb1d7cdfcd22af (patch)
tree9106f87dab43facc5a707df7ea4e604a30444641 /firmware/lib/mocked_rollback_index.c
parente97760cec3a4e08f6b3b3266bfcb02137197a7a7 (diff)
downloadvboot-b75d8adcc01f08cf5a6d87b78aeb1d7cdfcd22af.tar.gz
Use virtual dev-mode switch when told to.factory-2338.B
If VbInit() is instructed to look at a virtual dev-mode switch, then it will use value contained in the TPM's firmware space instead of a hardware GPIO to determine if developer mode is enabled. This change just makes it look. It doesn't provide a way to actually set the value in the TPM. VbInit() isn't being told to look yet, either. Those changes are coming. BUG=chrome-os-partner:9706 TEST=none The usual sanity-check applies: make make runtests But to actually test that this stuff is working IRL requires special tweaks to other components and monitoring the serial debug output from both EC and CPU. We'll save the hands-on tests for when it's all done. Change-Id: Ie485ad2180224e192238bf2a5dbf95bbcb9130f9 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/23067 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'firmware/lib/mocked_rollback_index.c')
-rw-r--r--firmware/lib/mocked_rollback_index.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/lib/mocked_rollback_index.c b/firmware/lib/mocked_rollback_index.c
index f36bed8a..32082ddd 100644
--- a/firmware/lib/mocked_rollback_index.c
+++ b/firmware/lib/mocked_rollback_index.c
@@ -27,8 +27,8 @@ uint32_t RollbackS3Resume(void) {
}
-uint32_t RollbackFirmwareSetup(int recovery_mode, int developer_mode,
- uint32_t* version) {
+uint32_t RollbackFirmwareSetup(int recovery_mode, int hw_dev_sw,
+ int* dev_mode_ptr, uint32_t* version) {
*version = 0;
return TPM_SUCCESS;
}