| Index: firmware/lib/vboot_firmware.c
|
| diff --git a/firmware/lib/vboot_firmware.c b/firmware/lib/vboot_firmware.c
|
| index 6265acc702266dbfec86da42b6cfefa79db32ce2..9172e5c89e75ba9ab11c197c6da0b4b3c60b42f3 100644
|
| --- a/firmware/lib/vboot_firmware.c
|
| +++ b/firmware/lib/vboot_firmware.c
|
| @@ -36,6 +36,7 @@ void UpdateFirmwareBodyHash(LoadFirmwareParams* params,
|
|
|
| int LoadFirmwareSetup(void) {
|
| /* TODO: handle test errors (requires passing in VbNvContext) */
|
| + /* TODO: record timer values (requires passing in VbSharedData) */
|
| /* TODO: start initializing the TPM */
|
| return LOAD_FIRMWARE_SUCCESS;
|
| }
|
| @@ -76,6 +77,7 @@ int LoadFirmware(LoadFirmwareParams* params) {
|
| recovery = VBNV_RECOVERY_RO_SHARED_DATA;
|
| goto LoadFirmwareExit;
|
| }
|
| + shared->timer_load_firmware_enter = VbGetTimer();
|
|
|
| /* Handle test errors */
|
| VbNvGet(vnc, VBNV_TEST_ERROR_FUNC, &test_err);
|
| @@ -352,6 +354,8 @@ LoadFirmwareExit:
|
| recovery : VBNV_RECOVERY_NOT_REQUESTED);
|
| VbNvTeardown(vnc);
|
|
|
| + shared->timer_load_firmware_exit = VbGetTimer();
|
| +
|
| /* Note that we don't reduce params->shared_data_size to shared->data_used,
|
| * since we want to leave space for LoadKernel() to add to the shared data
|
| * buffer. */
|
|
|