3 comments:
Patch Set #2, Line 14: that tpm
the TPM
Patch Set #2, Line 18: Files
Remove.
File src/security/vboot/vbnv.c:
/* Read the recovery switch state from VBNV. */
int get_recovery_switch_from_vbnv(int *recovery_switch)
{
uint8_t misc_flags;
vbnv_setup();
misc_flags = vbnv_data(MISC_FLAGS_OFFSET);
if (!(misc_flags & MISC_FLAGS_RECOVERY_SWITCH_VALID_MASK))
return -1;
*recovery_switch =
!!(misc_flags & MISC_FLAGS_RECOVERY_SWITCH_STATE_MASK);
return 0;
}
Use CB_SUCCESS and CB_ERROR.
To view, visit change 31800. To unsubscribe, or for help writing mail filters, visit settings.