3 comments:
Patch Set #2, Line 9: Add flags to save the recovery switch state.
You should provide more context and reasoning in the commit description.
File src/security/vboot/vbnv.h:
data?
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.
This entire file doesn't use those return values, though it is mainly dealing with returning values.
To view, visit change 31800. To unsubscribe, or for help writing mail filters, visit settings.