diff options
Diffstat (limited to 'firmware/lib/vboot_ui_common.c')
-rw-r--r-- | firmware/lib/vboot_ui_common.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/lib/vboot_ui_common.c b/firmware/lib/vboot_ui_common.c index 69486649..727ed779 100644 --- a/firmware/lib/vboot_ui_common.c +++ b/firmware/lib/vboot_ui_common.c @@ -7,6 +7,10 @@ #include "sysincludes.h" +#include "2sysincludes.h" +#include "2common.h" + +#include "rollback_index.h" #include "vboot_api.h" #include "vboot_ui_common.h" @@ -25,3 +29,12 @@ void vb2_error_beep(enum vb2_beep_type beep) break; } } + +void vb2_run_altfw(int altfw_num) +{ + if (RollbackKernelLock(0)) + VB2_DEBUG("Error locking kernel versions on legacy boot.\n"); + else + VbExLegacy(altfw_num); /* will not return if found */ + vb2_error_beep(VB_BEEP_FAILED); +} |