summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2020-04-27 16:40:04 +0800
committerCommit Bot <commit-bot@chromium.org>2020-05-05 06:53:55 +0000
commitc909976b558f1a357b29916849c1a9d678e1bdbd (patch)
tree22dd27834da711a7579fd2e5cda7b6bb0c42b96c
parentcdbce32283982b653bafcf48121436d85ce438f4 (diff)
downloadvboot-c909976b558f1a357b29916849c1a9d678e1bdbd.tar.gz
vboot: Remove reboot-related vboot1-style errors
BRANCH=none BUG=b:124141368, chromium:988410 TEST=make runtests Cq-Depend: chromium:2154269, chromium:2175864 Change-Id: Ib3996ecc83a69ce6780d48f1aa446e81dfd75589 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2167622 Reviewed-by: Joel Kitching <kitching@chromium.org>
-rw-r--r--firmware/2lib/include/2return_codes.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h
index 6b5c0279..989420aa 100644
--- a/firmware/2lib/include/2return_codes.h
+++ b/firmware/2lib/include/2return_codes.h
@@ -25,7 +25,7 @@ enum vb2_return_code {
VB2_SUCCESS = 0,
/**********************************************************************
- * Return values that are not considered errors
+ * Requests to the caller that are not considered errors
*/
VB2_REQUEST = 0x1000,
@@ -42,7 +42,7 @@ enum vb2_return_code {
VB2_REQUEST_REBOOT_EC_TO_RO = 0x1004,
/* Continue in the UI loop. This is used in UI internal functions. */
- VB2_REQUEST_UI_CONTINUE = 0x1005,
+ VB2_REQUEST_UI_CONTINUE = 0x1005,
/* End of VB2_REQUEST_* */
VB2_REQUEST_END = 0x5000,
@@ -63,23 +63,12 @@ enum vb2_return_code {
* vboot1-style errors
* TODO: deprecate these once they have all moved over to vboot2 style
*/
- /* Calling firmware needs to perform a reboot. */
- VBERROR_REBOOT_REQUIRED = VB2_REQUEST_REBOOT,
- /* Calling firmware requested shutdown via VbExIsShutdownRequested() */
- VBERROR_SHUTDOWN_REQUESTED = VB2_REQUEST_SHUTDOWN,
/* VbExBeep() can't make sound in the background */
VBERROR_NO_BACKGROUND_SOUND = 0x10019,
- /* Need EC to reboot to read-only code to switch RW slot */
- VBERROR_EC_REBOOT_TO_SWITCH_RW = VB2_REQUEST_REBOOT_EC_SWITCH_RW,
- /* Need EC to reboot to read-only code */
- VBERROR_EC_REBOOT_TO_RO_REQUIRED = VB2_REQUEST_REBOOT_EC_TO_RO,
/* Peripheral busy. Cannot upgrade firmware at present. */
VBERROR_PERIPHERAL_BUSY = 0x10030,
/* Error writing VPD */
VBERROR_VPD_WRITE = 0x10032,
- /* Detachable UI internal functions may return the following codes */
- /* No error; return to UI loop */
- VBERROR_KEEP_LOOPING = VB2_REQUEST_UI_CONTINUE,
/**********************************************************************
* SHA errors