diff options
Diffstat (limited to 'firmware/lib/vboot_common.c')
-rw-r--r-- | firmware/lib/vboot_common.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/firmware/lib/vboot_common.c b/firmware/lib/vboot_common.c index 839964b0..d062477f 100644 --- a/firmware/lib/vboot_common.c +++ b/firmware/lib/vboot_common.c @@ -98,23 +98,3 @@ vb2_error_t VbSharedDataSetKernelKey(VbSharedDataHeader *header, return PublicKeyCopy(kdest, src); } - -int vb2_allow_recovery(struct vb2_context *ctx) -{ - /* VB2_GBB_FLAG_FORCE_MANUAL_RECOVERY forces this to always return - true. */ - if (vb2_get_gbb(ctx)->flags & VB2_GBB_FLAG_FORCE_MANUAL_RECOVERY) - return 1; - - /* - * If EC is in RW, it implies recovery wasn't manually requested. - * On some platforms, EC_IN_RW can't be reset by the EC, thus, this may - * return false (=RW). That's ok because if recovery is manual, we will - * get the right signal and that's the case we care about. - */ - if (!vb2ex_ec_trusted()) - return 0; - - /* Now we confidently check the recovery switch state at boot */ - return !!(vb2_get_sd(ctx)->vbsd->flags & VBSD_BOOT_REC_SWITCH_ON); -} |